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=12 AND iPostID IN (SELECT t.iPostID FROM posttext t WHERE t.iDomID=101 AND MATCH (t.strSearch) AGAINST ('+ads +for +stores' IN BOOLEAN MODE)) AND iCityID IN (69735,67627,68579,70209,67244,69971,69799,68961,69970,68181,69650,68452,68680,67457,68755,68586,67364,69841,70166,67925,69257,67846) ORDER BY FIELD(iCityID, 69735,67627,68579,70209,67244,69971,69799,68961,69970,68181,69650,68452,68680,67457,68755,68586,67364,69841,70166,67925,69257,67846) ASC, p.tmPosted DESC LIMIT 24