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' GROUP BY op.product_id ORDER BY no_sel' 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 !='506' AND op.order_id IN (17872,17865,17846,17842,17751,17696,17437,17423,17395,17390,17372,17215,17210,17202,17102,17027,17018,16969,16953,16865,16804,16709,16629,16516,16418,16330,16270,16269,16248,16177,16154,16093,16092,16065,16009,15984,15890,15877,15875,15867,15863,15833,15821,15792,15785,15741,15674,15643,15641,15512,15505,15435,15430,15359,15317,15213,15173,15028,14973,14927,14873,14792,14632,14478,14433,14418,14301,14253,14250,14206,14110,14087,14080 in /home/vapourdr/public_html/system/library/db/mysqli.php on line 40