Severity: Notice
Message: Undefined index: id_category
Filename: controllers/products.php
Line Number: 184
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/pmegamart/public_html/system/core/Exceptions.php:185)
Filename: core/Common.php
Line Number: 440
Error Number: 1064
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 'ORDER BY `p`.`id_product` desc' at line 6
SELECT * FROM (`products` p) JOIN `attachment` a ON `a`.`id_product` = `p`.`id_product` JOIN `product_category` pc ON `pc`.`id_product` = `p`.`id_product` WHERE a.default=1 AND pc.id_category= ORDER BY `p`.`id_product` desc
Filename: /home/pmegamart/public_html/models/backend/productsmodel.php
Line Number: 97