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 'then 0 else 1 end, post_created LIMIT 20 OFFSET 0' at line 1 in /var/www/codoforum/sys/CODOF/Forum/Post.php:65
Stack trace:
#0 /var/www/codoforum/sys/CODOF/Forum/Post.php(65): PDO->query('SELECT u.id, r....')
#1 /var/www/codoforum/sys/Controller/Ajax/forum/topic.php(90): CODOF\Forum\Post->get_posts(12149, 0)
#2 /var/www/codoforum/sys/Controller/forum.php(476): Controller\Ajax\forum\topic->get_posts(12149, 0, Array)
#3 /var/www/codoforum/routes.php(506): Controller\forum->topic(12149, 1)
#4 [internal function]: {closure}(12149, 'what-is-the-can...')
#5 /var/www/codoforum/sys/CODOF/Router/Router.php(91): call_user_func_array(Object(Closure), Array)
#6 /var/www/codoforum/sys/CODOF/Router/Router.php(56): CODOF\Router\Router::_dispatch(Object(FastRoute\Dispatcher\GroupCountBased))
#7 /var/www/codoforum in /var/www/codoforum/sys/CODOF/Forum/Post.php on line 65