Severity: Notice
Message: Undefined index: id
Filename: front/products.php
Line Number: 62
Severity: Notice
Message: Undefined index: id_category
Filename: front/products.php
Line Number: 62
Error Number: 1064
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 'AND (`products`.`id_category` ='' OR `categories`.`id_parent` ='') AND `stock...' at line 6
SELECT * FROM (`products`) JOIN `stock_available` ON `products`.`id` = `stock_available`.`id_product` LEFT JOIN `categories` ON `products`.`id_category` = `categories`.`id_category` WHERE `products`.`id` != AND (`products`.`id_category` ='' OR `categories`.`id_parent` ='') AND `stock_available`.`id_product_attribute` = 0 AND `stock_available`.`quantity` > 0 AND `products`.`active` = 1 AND `products`.`filename` != '' ORDER BY RAND() LIMIT 4
Filename: /home/hayyakidz/public_html/models/products_model.php
Line Number: 349