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 '.`category_id=tbl_course_cat`.`id`' at line 2
SELECT `tbl_courses`.`id`, `tbl_courses`.`title` as `course_title`, `tbl_courses`.`detail`, `tbl_courses`.`duration`, `tbl_courses`.`fee`, `tbl_courses`.`objectives`, `tbl_courses`.`category_id`, `tbl_course_cat`.`title` as `category` FROM `tbl_courses JOIN tbl_course_cat ON` `tbl_courses`.`category_id=tbl_course_cat`.`id`
Filename: models/Course_model.php
Line Number: 6