Fatal error: Uncaught exception 'PDOException' with message '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 '-20' at line 1' in /home/makeblock/www/foro/sys/CODOF/Forum/Post.php:53
Stack trace:
#0 /home/makeblock/www/foro/sys/CODOF/Forum/Post.php(53): PDO->query('SELECT u.id, r....')
#1 /home/makeblock/www/foro/sys/Controller/Ajax/forum/topic.php(84): CODOF\Forum\Post->get_posts(165, -1)
#2 /home/makeblock/www/foro/sys/Controller/forum.php(373): Controller\Ajax\forum\topic->get_posts(165, -1, Array)
#3 /home/makeblock/www/foro/routes.php(879): Controller\forum->topic(165, 'attachment')
#4 [internal function]: {closure}('165', 'serve', 'attachment')
#5 /home/makeblock/www/foro/sys/Ext/limonade/limonade.php(429): call_user_func_array(Object(Closure), Array)
#6 /home/makeblock/www/foro/sys/CODOF/Access/Request.php(96): run()
#7 /home/makeblock/www/foro/routes.php(929): CODOF\Access\ in /home/makeblock/www/foro/sys/CODOF/Forum/Post.php on line 53