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 '.html,5' at line 5

SELECT * FROM eventos WHERE Activa='y' AND Fecha >= NOW() - 1 AND Fecha >= DATE_SUB(NOW(), INTERVAL 6 MONTH) ORDER BY Fecha ASC LIMIT terms.html,5

Filename: models/Eventos_model.php

Line Number: 126