MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
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 'groups,',') LIKE '%,1,%' OR groups = '-1')' at line 1
Query:
SELECT pid, prefix FROM mybb_threadprefixes WHERE (CONCAT(',',forums,',') LIKE '%,0,%' OR forums = '-1') AND (CONCAT(',',groups,',') LIKE '%,1,%' OR groups = '-1')