Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/products.php
Line Number: 300
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/products.php
Line Number: 301
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/products.php
Line Number: 307
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/products.php
Line Number: 308
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/products.php
Line Number: 314
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/products.php
Line Number: 317
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/products.php
Line Number: 321
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/products.php
Line Number: 327
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/products.php
Line Number: 331
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/products.php
Line Number: 331
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 'GROUP BY `product`.`id` LIMIT 8' at line 8
SELECT `product`.`id`, `product_category`.`id`, `product`.`alias`, `product`.`image`, `product`.`caption_1`, `product`.`category_id`, `product`.`price`, `product`.`price_sale`, `product_category`.`name` as cate_name, `product`.`name`, `product`.`code`, `product`.`status`, `product`.`view`, `product`.`description`, `product`.`price` as pro_price, `product`.`multi_image`, `product`.`pro_dir`, `product`.`img_dir`, `product_category`.`alias` as cate_alias, `product_category`.`parent_id`, `product_to_category`.`id` as product_to_category_id, `product_brand`.`name` as brand_name FROM (`product`) JOIN `product_to_category` ON `product_to_category`.`id_product` = `product`.`id` JOIN `product_category` ON `product_to_category`.`id_category` = `product_category`.`id` JOIN `product_brand` ON `product_brand`.`id` = `product`.`brand_id` WHERE `product_category`.`id` IS NULL AND `product`.`id` != GROUP BY `product`.`id` LIMIT 8
Filename: /home/vnhous0718/domains/vnhousing.net/public_html/models/f_productmodel.php
Line Number: 110