Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/tmkk/public_html/kresowianie/includes/classes/class.database.php on line 211

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/tmkk/public_html/kresowianie/includes/classes/class.database.php on line 212

Błąd zapytania:
MySQL server has gone away

Ostatnia kwerenda:
SELECT file FROM gallery_photos ORDER BY RAND() LIMIT 1

#0  Database->notify() called at [/home/tmkk/public_html/kresowianie/includes/classes/class.database.php:93]
#1  Database->run_query(SELECT file FROM gallery_photos ORDER BY RAND() LIMIT 1) called at [/home/tmkk/public_html/kresowianie/includes/classes/class.database.php:239]
#2  Database->resulter(SELECT file FROM gallery_photos ORDER BY RAND() LIMIT 1) called at [/home/tmkk/public_html/kresowianie/includes/classes/class.database.php:134]
#3  Database->db_fetch_value(SELECT file FROM gallery_photos ORDER BY RAND() LIMIT 1) called at [/home/tmkk/public_html/kresowianie/includes/classes/class.gallery.php:355]
#4  gallery->getRandomFoto() called at [/home/tmkk/public_html/kresowianie/includes/classes/class.frontend.php:136]
#5  view->render() called at [/home/tmkk/public_html/kresowianie/includes/classes/class.frontend.php:148]
#6  view->__destruct()