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 YEAR(file_month) = YEAR(CURDATE()) AND status = 'Active' ' at line 3
SELECT * FROM tbl_ellora_times WHERE MONTH(file_month) = MONTH(DATE_SUB(CURDATE(), INTERVAL MONTH)) AND YEAR(file_month) = YEAR(CURDATE()) AND status = 'Active' ORDER BY Id DESC LIMIT 5
Filename: models/DataModel.php
Line Number: 87