A Database Error Occurred

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 'OR b.schooling = 6 AND b.month = 0) GROUP BY `b`.`schoolid`' at line 4

SELECT `b`.`schoolid` FROM (`chi_search_index` a) JOIN `chi_course_index` b ON `a`.`courseid` = `b`.`id` WHERE `a`.`ismd5` = 'fb5c7f9bb4b32ce2f3bff4662f1ab27b' AND b.state = 1 AND b.isapply = 1 AND (b.schooling = 3 AND b.month = OR b.schooling = 6 AND b.month = 0) GROUP BY `b`.`schoolid`

Filename: controllers/index.php

Line Number: 313