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 'AND course_batches.start_date <= '2024-03-19' AND ' at line 5

SELECT * FROM course_batches WHERE course_batches.status = 1 AND course_batches.course_id = AND course_batches.start_date <= '2024-03-19' AND course_batches.end_date >= '2024-03-19' LIMIT 1

Filename: libraries/Query.php

Line Number: 89