Could not successfully run query: Lost connection to MySQL server during query