Exception ocured

message: Error in query: "select sum(coef * ?) as view_grade from f_thread_view where thread_id = ?", MySQL server has gone away
code: -2
file: /mnt/hosting/mntrs/mnt_bc/src/PSiteLib/PDatabase.php
line: 97
method: PDatabase::execute()