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 iSubType=1 AND p.iItemType='5' AND iCityID IN (6013,5925,28,6161,5476,6112,6260,5487,5913,5851,6233,5710,5785,5496,5645,6295,5905,6216,5878,5926,6139,5935,6290,6282,5821,5792,5461,6256,6043,6283,6089,5529,5866,5565,5823,5538,6118,5489,5662,5556,5888,5801,5917,16553,5558,5715,5714,5874,5987,6206,5895,5513,6176,5820,6158,5944,6156,5929,5945,5613,5998,5930,5507,5732,5786,5708,5733,6218,5578,5725,5543,5687,5815,6157,6148) ORDER BY FIELD(iCityID, 6013,5925,28,6161,5476,6112,6260,5487,5913,5851,6233,5710,5785,5496,5645,6295,5905,6216,5878,5926,6139,5935,6290,6282,5821,5792,5461,6256,6043,6283,6089,5529,5866,5565,5823,5538,6118,5489,5662,5556,5888,5801,5917,16553,5558,5715,5714,5874,5987,6206,5895,5513,6176,5820,6158,5944,6156,5929,5945,5613,5998,5930,5507,5732,5786,5708,5733,6218,5578,5725,5543,5687,5815,6157,6148) ASC, p.tmPosted DESC LIMIT 24