Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 '-8,8' at line 1 in /home/leluxfh/www/models/EventRepository.php:30 Stack trace: #0 /home/leluxfh/www/models/EventRepository.php(30): PDOStatement->execute() #1 /home/leluxfh/www/controllers/member/EventController.php(17): EventRepository->getEventsByLimit(-8, 8) #2 /home/leluxfh/www/public/router/router.php(54): EventController->index() #3 /home/leluxfh/www/public/router/routes.php(82): Router->dispatch() #4 /home/leluxfh/www/index.php(15): require('/home/leluxfh/w...') #5 {main} thrown in /home/leluxfh/www/models/EventRepository.php on line 30