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 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(145, 0) #2 /home/atestkqg/public_html/discuss/sys/Controller/forum.php(458): Controller\Ajax\forum\topic->get_posts(145, 0, Array) #3 /home/atestkqg/public_html/discuss/routes.php(938): Controller\forum->topic(145, 1) #4 [internal function]: {closure}('145', 'how-to-clear-my...', NULL) #5 /home/atestkqg/public_html/discuss/sys/Ext/limonade/limonade.php(429): call_user_func_array(Object(Closure), Array) #6 /home/atestkqg/public_html/ in /home/atestkqg/public_html/discuss/sys/CODOF/Forum/Post.php on line 60