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

SELECT `product`.*, `product_category`.`name` as cat_name FROM (`product`) LEFT JOIN `product_category` ON `product_category`.`id`=`product`.`category_id` WHERE `product`.`category_id` IS NULL AND `product`.`id` != ORDER BY `product`.`id` desc LIMIT 12

Filename: /home/phanphoibi/domains/phanphoibientan.com/public_html/models/f_productmodel.php

Line Number: 130