A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/product.php

Line Number: 242

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/product.php

Line Number: 244

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/alegrec/public_html/system/core/Exceptions.php:186)

Filename: core/Common.php

Line Number: 437

Database Error

A Database Error Occurred

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 'AND `module_product`.`status` = 1 AND `module_product_to_category`.`category_id' at line 11

SELECT `module_product`.*, `module_product`.`image` as product_image, `module_product`.`id` as prod_id, `module_product`.`id` as product_id, `module_product_category`.`name` as category_name, `module_product_to_category`.`category_id` as cat_id, `module_product_collection`.`name` as collection_name, `module_product_chunks`.`title` FROM (`module_product`) LEFT JOIN `module_product_to_category` ON `module_product_to_category`.`product_id`=`module_product`.`id` LEFT JOIN `module_product_category` ON `module_product_category`.`id`=`module_product_to_category`.`category_id` LEFT JOIN `module_product_to_collection` ON `module_product_to_collection`.`product_id`=`module_product`.`id` LEFT JOIN `module_product_collection` ON `module_product_collection`.`id`=`module_product_to_collection`.`collection_id` LEFT JOIN `module_product_chunks` ON `module_product_chunks`.`product_id`=`module_product`.`id` LEFT JOIN `module_product_to_material` ON `module_product_to_material`.`product_id`=`module_product`.`id` LEFT JOIN `module_product_material` ON `module_product_material`.`id`=`module_product_to_material`.`material_id` WHERE `module_product`.`id` != AND `module_product`.`status` = 1 AND `module_product_to_category`.`category_id` IS NULL GROUP BY `module_product`.`id` ORDER BY RAND() desc LIMIT 4

Filename: /home/alegrec/public_html/modules/product/models/product_model.php

Line Number: 249