Fatal error: Problem preparing query (select GROUP_CONCAT(tc.category_id) as category_id from tutor_course as tc LEFT JOIN tutor as tu on(tc.tutor_id=tu.tutor_id) LEFT JOIN course_batch as cb on(cb.course_id=tc.course_id) where tc.tutor_id = '' DEFAULT_URL '' and tc.status = 'active' and cb.status = 'active' and (cb.offer_end_date >= CURDATE() or cb.teaching_place = 'onlineself') ORDER BY tc.course_id DESC) 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 'DEFAULT_URL '' and tc.status = 'active' and cb.status = 'active' and (cb.offer' at line 1 in /home2/knowyjdx/public_html/classes/class.db.php on line 1533