2006 MySQL server has gone away
in:
[select template_dir from template_select where template_language = 0]