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 MariaDB server version for the right syntax to use near '-5, 5' at line 15 in /home/kutno1/ftp/ramix.com.pl/global/paginator.php:39 Stack trace: #0 /home/kutno1/ftp/ramix.com.pl/global/paginator.php(39): PDO->query('select \n news....') #1 /home/kutno1/ftp/ramix.com.pl/elements/main/news/news_list.php(32): Paginator->getData('5', '0') #2 /home/kutno1/ftp/ramix.com.pl/elements/main/news/index.php(14): include('/home/kutno1/ft...') #3 /home/kutno1/ftp/ramix.com.pl/elements/main.php(33): include('/home/kutno1/ft...') #4 /home/kutno1/ftp/ramix.com.pl/index.php(50): include('/home/kutno1/ft...') #5 {main} thrown in /home/kutno1/ftp/ramix.com.pl/global/paginator.php on line 39