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 'FROM mybb_users WHERE uid = '1670'' at line 1
Query:
SELECT rank FROM mybb_users WHERE uid = '1670'