Corrected sql query for location refine on for sale search