select * from tblproducts where producttype=0 and isactive=1 and pid in (0,1913,1912,1911,1910,1909,1908,1907,1906,1905,1904,1881,1880,1879,1878,1873,1808,1807,1806,1805,1804,1803,1802,1801,1800,1799,1798,1797,1796,1795,1794,1793,1792,1791,1790,1789,1788,1786,1785,1784,1783,1782,1781,1780,1779,1778,1777,1776,1775,1773,1772,1771,1770,1769,1768,1767,1766,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,1432,1415,1403,1389,1385,1383,1382,1380,1378,1375,1365,1363,1362,1361,1358,1244,1242,1241,1237,1236,1235,1231,1207,831,804,803,801,793,784,776,744,736,735,718,716,669,666,661,659,657,655,654,651,641,636,632,631,626,623,622,614,609,601,600,595,594,583,575,573,562,560,557,553,550,543,535,532,526,524,518,483,483,465,454,452,449,440,438,433,432,424,403,398,395,390,380,375,373,366,365,360,359,351,343,339,316,312,303,302,296,287,286,274,269,256,251,243,241,240,233,210,200,197,192,184,179,178,176,168,167,164,163,156,153,150,146,104,96,92,78,77,70,49,781,743,742,709,704,590,567,509,495,494,478,453,428,385,283,229,145,121,59,50,39,29,1877,1876,1875,1874) order by FIELD(pid,0,1913,1912,1911,1910,1909,1908,1907,1906,1905,1904,1881,1880,1879,1878,1873,1808,1807,1806,1805,1804,1803,1802,1801,1800,1799,1798,1797,1796,1795,1794,1793,1792,1791,1790,1789,1788,1786,1785,1784,1783,1782,1781,1780,1779,1778,1777,1776,1775,1773,1772,1771,1770,1769,1768,1767,1766,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,1432,1415,1403,1389,1385,1383,1382,1380,1378,1375,1365,1363,1362,1361,1358,1244,1242,1241,1237,1236,1235,1231,1207,831,804,803,801,793,784,776,744,736,735,718,716,669,666,661,659,657,655,654,651,641,636,632,631,626,623,622,614,609,601,600,595,594,583,575,573,562,560,557,553,550,543,535,532,526,524,518,483,483,465,454,452,449,440,438,433,432,424,403,398,395,390,380,375,373,366,365,360,359,351,343,339,316,312,303,302,296,287,286,274,269,256,251,243,241,240,233,210,200,197,192,184,179,178,176,168,167,164,163,156,153,150,146,104,96,92,78,77,70,49,781,743,742,709,704,590,567,509,495,494,478,453,428,385,283,229,145,121,59,50,39,29,1877,1876,1875,1874) 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