Application for “mega mosque” thrown out by council