Notice: Undefined index: product_id in /web/htdocs/ on line 12
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 oc_category_description.language_id =2 ORDER BY' at line 4<br />Error No: 1064<br />SELECT * FROM oc_product_to_category LEFT JOIN oc_category_description ON oc_category_description.category_id = oc_product_to_category.category_id WHERE oc_product_to_category.product_id = AND oc_category_description.language_id =2 ORDER BY oc_product_to_category.category_id DESC LIMIT 1 in /web/htdocs/ Stack trace: #0 /web/htdocs/ DB\MySQLi->query('SELECT * \n\t\tFRO...') #1 /web/htdocs/ DB->query('SELECT * \n\t\tFRO...') #2 /web/htdocs/ Model in /web/htdocs/ on line 40