Notice: Undefined index: category_id in /home/tortvam/tortvam.com/docs/system/storage/modification/catalog/controller/product/product.php 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/tortvam.com/docs/system/library/db/mysqli.php:40
Stack trace:
#0 /home/tortvam/tortvam.com/docs/system/library/db.php(16): DB\MySQLi->query('SELECT DISTINCT...', Array)
#1 /home/tortvam/tortvam.com/docs/system/storage/modification/catalog/model/catalog/product.php(73): DB->query('SELECT DISTINCT...')
#2 [internal function]: ModelCatalogProduct->getExtraRelatedProducts(NULL, 4)
#3 /home/tortvam/tortvam.com/docs/system/storage/modification/system/engine/loader.php(178): call_user_func_array(Arr in /home/tortvam/tortvam.com/docs/system/library/db/mysqli.php on line 40