Notice: Trying to access array offset on value of type bool in /var/www/vhosts/englishforlife.mk/forum.englishforlife.mk/sys/Controller/forum.php on line 199

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 'AND t.topic_status <> 0 AND ( EXISTS (SELECT 1 FROM codo_permissions AS per...' at line 3 in /var/www/vhosts/englishforlife.mk/forum.englishforlife.mk/sys/CODOF/Forum/Category.php:214 Stack trace: #0 /var/www/vhosts/englishforlife.mk/forum.englishforlife.mk/sys/CODOF/Forum/Category.php(214): PDO->query() #1 /var/www/vhosts/englishforlife.mk/forum.englishforlife.mk/sys/Controller/forum.php(200): CODOF\Forum\Category->get_total_num_topics() #2 /var/www/vhosts/englishforlife.mk/forum.englishforlife.mk/routes.php(483): Controller\forum->category() #3 [internal function]: {closure}() #4 /var/www/vhosts/englishforlife.mk/forum.englishforlife.mk/sys/CODOF/Router/Router.php(91): call_user_func_array() #5 /var/www/vhosts/englishforlife.mk/forum.englishforlife.mk/sys/CODOF/Router/Router.php(56): CODOF\Rou in /var/www/vhosts/englishforlife.mk/forum.englishforlife.mk/sys/CODOF/Forum/Category.php on line 214