Invalid SQL Syntax Inside database::query (SET CHARSET 'utf8';): MySQL server has gone away