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=1 AND MATCH (t.strSearch) AGAINST ('+websites to +find +houses +for +sale' IN BOOLEAN MODE)) AND iCityID IN (15001,15077,14990,15082,14997,15014,15006,15054,16379,15050,15033,15074) ORDER BY FIELD(iCityID, 15001,15077,14990,15082,14997,15014,15006,15054,16379,15050,15033,15074) ASC, p.tmPosted DESC LIMIT 24