Fixed query result reading part