select * from tblproducts where producttype=0 and isactive=1 and pid in (0,779,778,1881,1880,1879,1871,1870,1869,1868,1867,1866,1865,1864,1863,1862,1861,1860,1859,1858,1857,1856,1855,1854,1853,1852,1851,1850,1849,1687,1686,1685,1681,1680,1679,1677,1610,1480,1479,1478,1476,1475,1474,1473,1472,1471,1470,1390,1389,1384,1382,1380,1377,1376,1375,1372,1371,1367,1364,1363,1362,826,809,808,806,786,785,783,781,763,762,740,730,712,706,696,684,655,654,638,623,609,595,575,557,553,550,526,515,513,512,510,506,505,503,502,501,500,497,496,491,488,487,485,476,474,473,472,471,470,468,467,463,462,457,442,441,421,417,401,399,394,381,377,369,363,357,353,349,337,329,327,326,322,319,308,306,299,291,288,282,281,279,272,271,267,266,265,258,257,254,248,239,235,232,231,228,224,222,220,219,214,212,211,206,190,189,188,182,166,155,141,140,139,138,135,130,120,117,114,101,93,92,83,71,69,59,58,54,48,43,36,35,31,30,27,23,21,20,19,18,17,16,15,1877,1876,1875,1874,1615,1608,1607,1606,1605,1604,1603,1602,631,622,128,52,1720,1601,1597,1596,1593,1592,1588,1587,1583,1577,1576,1572,1571,1568,1567,1566,1563,1562,825,824,812,780,770,732,690,652,644,516,492,486,466,459,456,445,431,418,416,414,412,402,379,368,367,361,358,356,331,330,323,317,305,304,290,289,277,264,263,259,255,252,238,234,227,225,221,218,202,187,174,169,149,148,144,143,131,126,123,120,119,118,105,102,91,89,88,62,60,46,25,22) order by FIELD(pid,0,779,778,1881,1880,1879,1871,1870,1869,1868,1867,1866,1865,1864,1863,1862,1861,1860,1859,1858,1857,1856,1855,1854,1853,1852,1851,1850,1849,1687,1686,1685,1681,1680,1679,1677,1610,1480,1479,1478,1476,1475,1474,1473,1472,1471,1470,1390,1389,1384,1382,1380,1377,1376,1375,1372,1371,1367,1364,1363,1362,826,809,808,806,786,785,783,781,763,762,740,730,712,706,696,684,655,654,638,623,609,595,575,557,553,550,526,515,513,512,510,506,505,503,502,501,500,497,496,491,488,487,485,476,474,473,472,471,470,468,467,463,462,457,442,441,421,417,401,399,394,381,377,369,363,357,353,349,337,329,327,326,322,319,308,306,299,291,288,282,281,279,272,271,267,266,265,258,257,254,248,239,235,232,231,228,224,222,220,219,214,212,211,206,190,189,188,182,166,155,141,140,139,138,135,130,120,117,114,101,93,92,83,71,69,59,58,54,48,43,36,35,31,30,27,23,21,20,19,18,17,16,15,1877,1876,1875,1874,1615,1608,1607,1606,1605,1604,1603,1602,631,622,128,52,1720,1601,1597,1596,1593,1592,1588,1587,1583,1577,1576,1572,1571,1568,1567,1566,1563,1562,825,824,812,780,770,732,690,652,644,516,492,486,466,459,456,445,431,418,416,414,412,402,379,368,367,361,358,356,331,330,323,317,305,304,290,289,277,264,263,259,255,252,238,234,227,225,221,218,202,187,174,169,149,148,144,143,131,126,123,120,119,118,105,102,91,89,88,62,60,46,25,22) 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