MySQL Query Error: Query execution was interrupted