Fatal error: Uncaught exception 'Exception' with message '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 ') AND p.status = 1 AND p2s.store_id = '0' AND p.quantity > 0 GROUP BY op.product' at line 5<br />Error No: 1064<br />SELECT op.product_id, SUM(op.quantity) as no_sells FROM oc_order_product op LEFT JOIN oc_product p ON (op.product_id = p.product_id) LEFT JOIN oc_product_to_store p2s ON (op.product_id = p2s.product_id) WHERE op.product_id !='182' AND op.order_id IN (24500,24205,24132,24080,24020,23748,22901,22754,22305,21892,21886,21568,21534,21528,20824,20726,20667,20649,20619,20607,20530,20479,20477,20417,20405,20297,20290,20285,20235,20072,19897,19772,19624,19568,19566,19559,19463,19209,19085,19034,18980,18704,18560,18546,18540,18498,18483,18398,18107,17982,17642,17546,17505,17390,17308,17259,17081,16783,16695,16643,16641,16569,16567,16550,16535,16471,16441,16339,16332,16303,16277,16267,1 in /homepages/23/d415928027/htdocs/AdMinOC/system/library/db/mysqli.php on line 40