Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `c`.`cat_parent_id` = 0 AND `c`.`active` = 1 AND `c`.`cat_type_id` = '8'' at line 6
SELECT `c`.*, `cbr`.* FROM (`category` c) JOIN `category_brand_relation` cbr ON `cbr`.`cat_id` = `c`.`cat_id` WHERE `cbr`.`brand_id` = '1' AND `c`.`cat_id` != AND `c`.`cat_parent_id` = 0 AND `c`.`active` = 1 AND `c`.`cat_type_id` = '8'
Filename: /var/www/alghadi_phase3/models/front_product_model.php
Line Number: 207