Exam Syllabus

Information
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 'order by gp_order' at line 1
select tbl_group_package.*, exam_name, exam_photo_url from tbl_group_package, tbl_exam where tbl_group_package.status!=0 and gp_exam_id=exam_id and gp_exam_id= order by gp_order