A Database Error Occurred

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 (`t1`.`technology_id` = OR FIND_IN_SET(,t1.topic_ids)) AND `t1`.`user_type` ' at line 7

SELECT `t1`.*, `t2`.`image`, `t2`.`image_alt_tag`, `t2`.`technology_name`, `t2`.`url` as `technology_url`, `t3`.`url` as `user_url`, `t3`.`institute_name`, `t3`.`name`, `t3`.`logo`, `t3`.`logo_alt_tag`, `t4`.`id` as `city_id`, `t4`.`city_name`, `t5`.`area_name` FROM `tbl_courses` `t1` LEFT JOIN `tbl_technologies` `t2` ON `t1`.`technology_id`=`t2`.`id` LEFT JOIN `tbl_users` `t3` ON `t1`.`user_id`=`t3`.`id` LEFT JOIN `tbl_cities` `t4` ON `t3`.`city_id`=`t4`.`id` LEFT JOIN `tbl_areas` `t5` ON `t3`.`area_id`=`t5`.`id` WHERE `t3`.`area_id` = 21 AND `t1`.`business_type_id` = AND (`t1`.`technology_id` = OR FIND_IN_SET(,t1.topic_ids)) AND `t1`.`user_type` = 1 AND `t1`.`status` = 1 AND `t1`.`publish_status` = 1 ORDER BY `t1`.`id` DESC

Filename: modules/trainings/models/Trainings_model.php

Line Number: 140