SQL ERROR

Location: /home/chulapd/public_html/modules/treatment/function.php (line 99)
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 `a`.`published_en`=1 AND `b`.`published_en`=1 AND `b`.`flg_permission`=0)' at line 1 [1064]
SELECT COUNT(`treatment_id`) AS `total` FROM `cp_treatment_list` AS `a` LEFT JOIN `cp_treatment_category` AS `b` ON(`b`.`category_id`=`a`.`category_id`) WHERE ((`a`.`category_id`=) AND `a`.`published_en`=1 AND `b`.`published_en`=1 AND `b`.`flg_permission`=0)
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.