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 'or-not/forum_thread/7/1055' at line 1 Failed query: SELECT * FROM rate_forum_threads LEFT JOIN rate_forums ON f_id=t_forum WHERE t_id=7/hot-or-not/forum_thread/7/1055