select * from tblproducts where producttype=0 and isactive=1 and pid in (0,1903,1902,1901,1900,1899,1898,1897,1896,1895,1894,1893,1892,1891,1890,1889,1888,1887,1886,1885,1884,1883,1882,1881,1880,1879,1878,1877,1876,1875,1874,1873,1808,1807,1806,1805,1804,1803,1802,1801,1800,1799,1798,1797,1796,1795,1794,1793,1792,1791,1790,1789,1783,1780,1779,1776,1775,1773,1770,1769,1766,1765,1740,1739,1738,1737,1736,1735,1734,1733,1732,1731,1730,1729,1728,1727,1726,1725,1724,1723,1688,1684,1683,1682,1678,1476,1450,1431,1430,1429,1428,1427,1426,1425,1424,1423,1422,1421,1420,1419,1418,1417,1416,1415,1414,1413,1412,1411,1410,1409,1408,1407,1406,1405,1404,1403,1402,1401,1400,1399,1398,1397,1396,1395,1394,1393,1392,1391,1389,1385,1376,1375,1374,1373,1369,1365,1363,1361,1358,1244,1242,1241,1237,1236,1235,1231,814,805,765,742,713,713,709,704,661,653,619,618,612,590,583,573,567,562,560,558,543,535,532,524,500,493,480,478,465,453,448,417,408,407,344,309,283,229,142,136,121,116,84,59,50,39,33,29,709,653,562,560,543,121,1806,1805,1801,1797,1796,1792,1791,742,567,478,465,453,283,229,121,39,29,25) order by FIELD(pid,0,1903,1902,1901,1900,1899,1898,1897,1896,1895,1894,1893,1892,1891,1890,1889,1888,1887,1886,1885,1884,1883,1882,1881,1880,1879,1878,1877,1876,1875,1874,1873,1808,1807,1806,1805,1804,1803,1802,1801,1800,1799,1798,1797,1796,1795,1794,1793,1792,1791,1790,1789,1783,1780,1779,1776,1775,1773,1770,1769,1766,1765,1740,1739,1738,1737,1736,1735,1734,1733,1732,1731,1730,1729,1728,1727,1726,1725,1724,1723,1688,1684,1683,1682,1678,1476,1450,1431,1430,1429,1428,1427,1426,1425,1424,1423,1422,1421,1420,1419,1418,1417,1416,1415,1414,1413,1412,1411,1410,1409,1408,1407,1406,1405,1404,1403,1402,1401,1400,1399,1398,1397,1396,1395,1394,1393,1392,1391,1389,1385,1376,1375,1374,1373,1369,1365,1363,1361,1358,1244,1242,1241,1237,1236,1235,1231,814,805,765,742,713,713,709,704,661,653,619,618,612,590,583,573,567,562,560,558,543,535,532,524,500,493,480,478,465,453,448,417,408,407,344,309,283,229,142,136,121,116,84,59,50,39,33,29,709,653,562,560,543,121,1806,1805,1801,1797,1796,1792,1791,742,567,478,465,453,283,229,121,39,29,25) 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