A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/item.php

Line Number: 1205

Database Error

A Database Error Occurred

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 `item`.`producer_id` = '134' AND `item_status` = 1 AND `category`.`categor' at line 6

SELECT `item`.`id`, `item`.`item_name`, `item`.`value`, `item`.`sale`, `item`.`new`, `item`.`category_id`, `item`.`price`, `item`.`item_link`, `item`.`photo`, `item`.`folder`, `item`.`thumb`, `category`.`category_name`, `category`.`category_link`, `category`.`id` as cate_id FROM (`item`) JOIN `itemcategory` ON `itemcategory`.`item_id`=`item`.`id` JOIN `category` ON `itemcategory`.`category_id`=`category`.`id` WHERE `category`.`id` != AND `item`.`producer_id` = '134' AND `item_status` = 1 AND `category`.`category_top` != 0 ORDER BY `category`.`category_weight` ASC, `item`.`item_weight` ASC, `item`.`id` DESC

Filename: /home/stshq/domains/sieuthisamhanquoc.com/public_html/modules/item/models/a_item.php

Line Number: 891