Fatal error: Problem preparing query (select tc.category_id,tu.tutor_id,tu.fname,tu.lname,tu.state_id as tutor_state,tu.city_id as tutor_city,ta.state_id as tutor_address_state,ta.city_id as tutor_address_city from tutor as tu inner join tutor_course as tc on tu.tutor_id = tc.tutor_id LEFT JOIN tutor_address as ta on tu.tutor_id = ta.tutor_id where tu.status = 'active' and tc.tutor_id != '' value.online_event_url '' and tu.type = 'tutor' and CONCAT(',',tc.category_id,',') REGEXP ',,') 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 'value.online_event_url '' and tu.type = 'tutor' and CONCAT(',',tc.category_id,' at line 1 in /home/knowyjdx/public_html/classes/class.db.php on line 767