You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20,20' at line 1 in SELECT * FROM other_ads WHERE id NOT IN ('1191','1190','1193','1194','1195','1196','1198','1199','1201','1202','1203','1204','1205','3008','3209','4666','5253','5309','5396','5471','5523','5932','6472','6479','6610','6631','6712','7244','7497','7495','7496') ORDER BY vip1 DESC, id DESC LIMIT -20,20