mysqli_sql_exception: 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 '-22,22' at line 6 in /home/hypodev/domains/hypotheken-unie.nl/public_html/includes/database.php:9 Stack trace: #0 /home/hypodev/domains/hypotheken-unie.nl/public_html/includes/database.php(9): mysqli_query() #1 /home/hypodev/domains/hypotheken-unie.nl/public_html/system/classes/services/NewsService.php(20): query() #2 /home/hypodev/domains/hypotheken-unie.nl/public_html/modules/page_plugins/newsOverview.php(14): NewsService->getNewsArticles() #3 /home/hypodev/domains/hypotheken-unie.nl/public_html/modules/sitetree.php(90): include('...') #4 /home/hypodev/domains/hypotheken-unie.nl/public_html/system/classes/Router.php(69): include('...') #5 /home/hypodev/domains/hypotheken-unie.nl/public_html/index.php(18): Router->execute() #6 {main}
SELECT *,r.rewrite as newsRewrite FROM news LEFT OUTER JOIN news_language ON news_language.id=news.id LEFT JOIN rewrite r ON r.rewrite_id = news_language.rewrite_id WHERE news_language.language_id=2 ORDER BY news.date DESC LIMIT -22,22