開校後3年以上の実績があるオンライン英会話スクール

MySQLでエラーが発生しました。
SELECT *,sum(bit) as rank,eikaiwa_school.start as kaikou FROM eikaiwa_school LEFT JOIN eikaiwa_ad ON eikaiwa_school.id=eikaiwa_ad.school_id WHERE eikaiwa_school.start <= '2018-07-28' and ('2021-07-28' <= end and '2021-07-28' >= eikaiwa_ad.start) and id <> '152' and id <> '146' and id <> '43' and id <> '' and flag is null Group by id ORDER by rank DESC
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 'rank,eikaiwa_school.start as kaikou FROM eikaiwa_school LEFT JOIN eikaiwa_ad ON' at line 1