A bid to build an extension has been thrown out after Bolton planners warned it would sit too close to a neighbouring property.