Fatal error: Uncaught exception 'ErrorException' with message 'Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB 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 order_product op LEFT JOIN product p ON (op.product_id = p.product_id) LEFT JOIN product_to_store p2s ON (op.product_id = p2s.product_id) WHERE op.product_id !='166' AND op.order_id IN (71767,71624,70770,70185,70168,70117,68949,68147,67878,67859,67738,67691,66499,66315,66275,66218,66039,63679,63673,63282,62949,62925,62561,62447,61909,61800,61467,61376,61083,60657,60364,60114,58943,58318,57404,57402,56968,55999,54143,52120,51907,51888,51869,51868,51784,51685,51684,50875,50093,49813,49743,49711,49688,48970,48732,48553,47970,45586,45558,45474,45395,45390,45329,45121,44316,44310,44024,43047,43037,42089,41967,41379,40911,4 in /www/hosting/cistedrevo.cz/www/system/database/dbmysqli.php on line 41