MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
2008 - MySQL client ran out of memory
Query:
SELECT u.*, u.username AS userusername, p.* FROM raha_posts p LEFT JOIN raha_users u ON (u.uid=p.uid) WHERE p.tid='3923' AND p.visible='1' ORDER BY p.dateline