Error in query:
SELECT t.title t_title, f.title f_title, f.id f_id
FROM topics t, forums f
WHERE t.id =  AND t.forum_id = f.id
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.forum_id = f.id' at line 3