Notice: Undefined index: product_id in /var/www/www/data/www/_all_sites_files/2_3/catalog/controller/extension/module/tm_ajax_quick_view.php on line 14
Fatal error: Uncaught exception 'Exception' with message '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 stock DESC, pd.name' at line 6<br />Error No: 1064<br /> SELECT pr.*, pd.name, IF(p.quantity > 0, 1, 0) AS stock FROM product_related AS pr LEFT JOIN product AS p ON p.product_id = pr.related_id LEFT JOIN product_description AS pd ON pd.product_id = pr.related_id AND pd.language_id = 2 WHERE pr.group_id = 11 AND pr.product_id = ORDER BY stock DESC, pd.name' in /var/www/www/data/www/_all_sites_files/2_3/system/library/db/mysqli.php:40 Stack trace: #0 /var/www/www/data/www/_all_sites_files/2_3/system/library/db.php(16): DB\MySQLi->query('\n\t\t\tSELECT pr.*...', Array) #1 /var/www/www/data/www/_all_sites_files/2_3/system/modification/ventaonline/catalog/model/module/related_group.php(30): DB->query('\n\t\t\tSELECT pr.*...') #2 /var/www/www/data/www/_all_sites_files/2_3/system/modification/ventaonli in /var/www/www/data/www/_all_sites_files/2_3/system/library/db/mysqli.php on line 40