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 'LIMIT 1' at line 5
SELECT `post`.`id`, `post`.`amigavel` FROM (`post`) WHERE `post`.`tipo` = 'evento' AND `post`.`id` < LIMIT 1
Filename: /home/storage/e/c1/ae/escolaabc1/public_html/libraries/datamapper.php
Line Number: 1328