select * from tblproducts where producttype=0 and isactive=1 and pid in (0,1788,1595,1594,1591,1574,1573,1570,1569,1560,1388,1265,1261,1260,1253,1252,526,1383,1378) order by FIELD(pid,0,1788,1595,1594,1591,1574,1573,1570,1569,1560,1388,1265,1261,1260,1253,1252,526,1383,1378) limit -16,16
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 '-16,16' at line 1
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 '-16,16' at line 1