MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1032 - Can't find record in 'bb_posts'
Query:
SELECT pid FROM bb_posts WHERE uid='142377' AND fid NOT IN ('10','18','19','20','21') ORDER BY dateline DESC