A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/products.php

Line Number: 279

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/products.php

Line Number: 283

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/products.php

Line Number: 349

Database Error

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` ORDER BY `product`.`id` desc LIMIT 10' at line 7

SELECT `product`.`id`, `product_category`.`id` as cate_id, `product`.`alias`, `product`.`image`, `product`.`caption_6`, `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` FROM (`product`) JOIN `product_to_category` ON `product`.`id` = `product_to_category`.`id_product` LEFT JOIN `product_category` ON `product_category`.`id` = `product_to_category`.`id_category` LEFT JOIN `product_brand` ON `product_brand`.`id` = `product`.`brand_id` WHERE `product`.`id` != GROUP BY `product`.`id` ORDER BY `product`.`id` desc LIMIT 10

Filename: /home/cnccapital/domains/cnccapital.com.vn/public_html/models/f_productmodel.php

Line Number: 113