Fatal error: Uncaught Exception: 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 main_category = 1 LIMIT 1)' at line 1<br />Error No: 1064<br />SELECT * FROM cp_category c INNER JOIN cp_category_description cd ON c.category_id = cd.category_id WHERE cd.language_id = 2 AND c.category_id = (SELECT category_id FROM cp_product_to_category WHERE product_id = AND main_category = 1 LIMIT 1) in /home/kingdompubl/public_html/system/library/db/mysqli.php:40 Stack trace: #0 /home/kingdompubl/public_html/system/library/db.php(16): DB\MySQLi->query('SELECT * FROM c...', Array) #1 /home/kingdompubl/public_html/catalog/model/catalog/product.php(485): DB->query('SELECT * FROM c...') #2 /home/kingdompubl/public_html/system/engine/loader.php(150): ModelCatalogProduct->getMainCategory('') #3 /home/kingdompubl/public_html/system/engine/proxy.php(13): Loader->{closure}(Array) #4 /home/kingdompubl/public_html/catalog/controller/product/product.ph in /home/kingdompubl/public_html/system/library/db/mysqli.php on line 40