Notice: Trying to access array offset on value of type bool in /var/www/vhosts/ 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/ Stack trace: #0 /var/www/vhosts/ PDO->query() #1 /var/www/vhosts/ CODOF\Forum\Category->get_total_num_topics() #2 /var/www/vhosts/ Controller\forum->category() #3 [internal function]: {closure}() #4 /var/www/vhosts/ call_user_func_array() #5 /var/www/vhosts/ CODOF\Rou in /var/www/vhosts/ on line 214