Notice: Undefined index: category_id in /home/tortvam/ on line 514
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 'GROUP BY p.product_id ORDER BY RAND() LIMIT 4' at line 4<br />Error No: 1064<br />SELECT DISTINCT p.product_id FROM oc_product p JOIN oc_product_to_category_related p2c ON p2c.product_id = p.product_id WHERE p2c.category_id = GROUP BY p.product_id ORDER BY RAND() LIMIT 4 ' in /home/tortvam/ Stack trace: #0 /home/tortvam/ DB\MySQLi->query('SELECT DISTINCT...', Array) #1 /home/tortvam/ DB->query('SELECT DISTINCT...') #2 [internal function]: ModelCatalogProduct->getExtraRelatedProducts(NULL, 4) #3 /home/tortvam/ call_user_func_array(Arr in /home/tortvam/ on line 40