Fatal error: Uncaught mysqli_sql_exception: 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 '-6' at line 1 in /home/unitamac/public_html/news.php:23
Stack trace:
#0 /home/unitamac/public_html/news.php(23): mysqli->query('SELECT id, titl...')
#1 /home/unitamac/public_html/news.php(94): getNews(Object(mysqli), 6, -6, NULL)
#2 {main}
thrown in /home/unitamac/public_html/news.php on line 23