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 rosters.school_id_num=0 AND school_enrollment.student_id_num=rosters.student' at line 1