Phorum Database Error

Sorry, a Phorum database error occurred.
Please try again later!

Error:

MySQL server has gone away (2006): SELECT count(*) FROM phorum_messages WHERE forum_id = 19 AND thread = 157511 AND status =2 AND message_id <= 298582

Backtrace:

Function phorum_database_error called at
{path to Phorum}/include/db/mysql/mysqli.php:212
----
Function phorum_db_interact called at
{path to Phorum}/include/db/mysql.php:1531
----
Function phorum_db_get_message_index called at
{path to Phorum}/read.php:203
----