MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
2008 - MySQL client ran out of memory
Query:
SELECT title,cache FROM mybb_datacache