check error getting rows after Query