SELECT SubDivisionId,RefSubDivisionId,AsText(polygon) AS polygon FROM rets_sub_division WHERE (SubDivisionName = '' OR REPLACE(REPLACE(REPLACE(SubDivisionAlias, '-', ' '),' ',' '),' ', ' ') = '') AND CityID IN (24262) ORDER BY polygon DESC,SubDivisionId ASC