Fatal error: Uncaught Exception: 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 ') ORDER BY p.total DESC LIMIT 0,12' at line 1<br />Error No: 1064<br />SELECT p.product_id FROM (SELECT product_id,count(0) total FROM kg_order o INNER JOIN kg_order_product op ON o.order_id=op.order_id WHERE o.order_status_id>0 GROUP BY product_id) as p INNER JOIN kg_product_to_category ptc ON p.product_id=ptc.product_id WHERE ptc.category_id IN (516,) ORDER BY p.total DESC LIMIT 0,12 in /var/www/vhosts/kitapgonder.com/httpdocs/system/library/db/mysqli.php:40 Stack trace: #0 /var/www/vhosts/kitapgonder.com/httpdocs/system/library/db.php(45): DB\MySQLi->query('SELECT p.produc...') #1 /var/www/vhosts/kitapgonder.com/httpdocs/storage/modification/catalog/controller/product/product.php(552): DB->query('SELECT p.produc...') #2 /var/www/vhosts/kitapgonder.com/httpdocs/storage/modification/system/engine/action.php(80): ControllerProductProduct->index() # in /var/www/vhosts/kitapgonder.com/httpdocs/system/library/db/mysqli.php on line 40