Could not connect to MySQL: Lost connection to MySQL server during query