If you encounter this error in your site, you may find that the last line of this code can help:
MySqlConnection myConnection = new MySqlConnection(sConnString);
MySqlCommand myCommand = new MySqlCommand(sql.ToString(), myConnection);
myConnection.Open();
MySqlDataReader myReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection);
return myReader;
