Notice: Error: 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 ') GROUP BY op.product_id ORDER BY no_sells DESC LIMIT 0,4' at line 3
Error No: 1064
SELECT op.product_id, SUM(op.quantity) as no_sells FROM oc_order_product op WHERE op.product_id !='102' AND op.order_id IN (2883,2839,2823,2814,2801,2708,2706,2657,2651,2629,2591,2517,2499,2497,2453,2417,2366,2365,2354,2352,2350,2298,2285,2282,2223,2204,2187,2184,2159,2018,2014,2000,1991,1958,1956,1955,1953,1952,1944,1935,1933,1930,1929,1901,1900,1876,1875,1872,1857,1843,1832,1799,1788,1736,1735,1733,1732,1731,1730,1721,1720,1671,1614,1600,1599,1573,1561,1533,1525,1524,1523,1522,1500,1490,1447,1446,1445,1444,1443,1430,1429,1428,1427,1426,1425,1389,1388,1382,1332,1322,1321,1320,1319,1318,1317,1303,1302,1301,1300,1299,1298,1297,1296,1295,1294,1293,1292,1291,1276,1269,1226,1220,1218,1217,1216,1208,1207,1197,1169,1160,1154,1153,1126,1116,1115,1114,1113,1111,1105,996,991,984,983,961,933,916,915,799,768,665,659,651,610,609,575,565,554,548,547,544,541,534,525,524,523,522,521,520,519,518,501,500,499,498,497,496,495,428,408,394,370,354,348,345,334,333,329,306,293,292,279,263,257,252,251,250,230,229,209,208,206,202,196,195,194,193,190,189,156,155,153,151,150,149,148,147,144,141,136,121,119,118,101,100,91,90,88,87,82,79,74,34,30,28,27,16,15,) GROUP BY op.product_id ORDER BY no_sells DESC LIMIT 0,4 in /home2/luxurywa/public_html/g-shockfactory.com/system/database/mysql.php on line 50