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 `product`.`id` != '23' GROUP BY `product`.`id` LIMIT 16' at line 5

SELECT `product`.`id`, `product_category`.`id`, `product`.`alias` as pro_alias, `product`.`image` as pro_image, `product`.`caption_1`, `product`.`category_id`, `product`.`price`, `product`.`price_sale`, `product_category`.`name` as cate_name, `product`.`name` as product_name, `product`.`description`, `product`.`price` as pro_price, `product`.`multi_image`, `product`.`pro_dir`, `product`.`img_dir`, `product_category`.`alias`, `product_category`.`alias` as cate_alias, `product_category`.`parent_id`, `product_to_category`.`id` as product_to_category_id 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` WHERE `product_category`.`id` IN () AND `product`.`id` != '23' GROUP BY `product`.`id` LIMIT 16

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

Line Number: 157