A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '`NULL` AND `curriculum`.`curriculum` = 'CBSE' AND `school`.`school_type` = 's...' at line 5

SELECT `school`.`id` FROM `school` LEFT JOIN `curriculum` ON `school`.`id` = `curriculum`.`post_id` WHERE `school`.`min_fee` >= '0%2C130000' AND `school`.`max_fee` < `IS` `NULL` AND `curriculum`.`curriculum` = 'CBSE' AND `school`.`school_type` = 'school' AND `school`.`school_type` = 'school' AND `school`.`country` = 229 AND `school`.`status` = 1 GROUP BY `school`.`id` ORDER BY `featured_home` DESC, `trend_home` DESC, `school`.`featured` DESC, `school`.`trend` DESC, `school`.`id` DESC LIMIT 12

Filename: models/School_model.php

Line Number: 3179