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 `tb`.`is_active` = 1 AND `tb`.`is_delete` = 0 ORDER BY `tb`.`is_special...' at line 8

SELECT DISTINCT `tb`.*, `c`.`alias` as c_alias, `c`.`en_alias` as en_c_alias, `c`.`title` as c_title, `c`.`en_title` as en_c_title FROM (`product` tb) LEFT JOIN `category` c ON `tb`.`id_category` = `c`.`id` LEFT JOIN `seo` s ON `s`.`data_id` = `tb`.`id` WHERE `s`.`data_table` = 'product' AND `tb`.`id_category` IS NULL AND `tb`.`id` != AND `tb`.`is_active` = 1 AND `tb`.`is_delete` = 0 ORDER BY `tb`.`is_special` desc, `tb`.`is_new` desc, `tb`.`id` desc LIMIT 999

Filename: /home/avcochem/public_html/models/m_product.php

Line Number: 374