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 'AND exam_paper.class_section_id= ORDER BY exam_id DESC' at line 7
SELECT * FROM `exam_paper` LEFT JOIN session ON session.session_id=exam_paper.session_id LEFT JOIN batch_info ON batch_info.batch_id=exam_paper.batch_id LEFT JOIN classes ON classes.class_id=exam_paper.class_id LEFT JOIN result_breakdown ON result_breakdown.result_breakdown_id=exam_paper.breakdown_id LEFT JOIN courses ON courses.sub_id=exam_paper.course_id WHERE exam_paper.exam_id=988 AND exam_paper.class_id= AND exam_paper.class_section_id= ORDER BY exam_id DESC
Filename: models/Smsmodal.php
Line Number: 85