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 MySQL server version for the right syntax to use near 'then 0 else 1 end, post_created LIMIT 20 OFFSET 0' at line 1 in /home/atestkqg/public_html/discuss/sys/CODOF/Forum/Post.php:60 Stack trace: #0 /home/atestkqg/public_html/discuss/sys/CODOF/Forum/Post.php(60): PDO->query('SELECT u.id, r....') #1 /home/atestkqg/public_html/discuss/sys/Controller/Ajax/forum/topic.php(87): CODOF\Forum\Post->get_posts(146, 0) #2 /home/atestkqg/public_html/discuss/sys/Controller/forum.php(458): Controller\Ajax\forum\topic->get_posts(146, 0, Array) #3 /home/atestkqg/public_html/discuss/routes.php(938): Controller\forum->topic(146, 1) #4 /home/atestkqg/public_html/discuss/sys/Ext/limonade/limonade.php(429): {closure}('146', 'how-to-clear-my...', 1) #5 /home/atestkqg/public_html/discuss/sys/CODOF/Access/Request.php(94): run() #6 /home/atestkqg/public_html/discuss/routes.php(1 in /home/atestkqg/public_html/discuss/sys/CODOF/Forum/Post.php on line 60