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 != '' href '' 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 'href '' and tu.type = 'tutor' and CONCAT(',',tc.category_id,',') REGEXP ',,'' at line 1 in /home2/knowyjdx/public_html/classes/class.db.php on line 1533