SELECT p.iPostID, p.iPostType, p.iAdType, p.iUserType, p.strTitle, p.iSubType, p.iItemType, p.iPrice, p.iPriceUnit, json_unquote(p.jsonLocation->"$.city") AS city, p.jsonExtra, p.tmPosted, p.iShowImg, p.strImages, p.strVideos, p.strPostURL FROM posts p WHERE p.iActive=1 AND p.iPostType=1 AND iPostID IN (SELECT t.iPostID FROM posttext t WHERE t.iDomID=101 AND MATCH (t.strSearch) AGAINST ('+get +real +estate +listings' IN BOOLEAN MODE)) AND iCityID IN (69798,67712,67880,68529,70097,69783,68510,68409,69353,69444,67364,68702,69841,69262,69972,67687,69799,69970,68071,69806,68712) ORDER BY FIELD(iCityID, 69798,67712,67880,68529,70097,69783,68510,68409,69353,69444,67364,68702,69841,69262,69972,67687,69799,69970,68071,69806,68712) ASC, p.tmPosted DESC LIMIT 24