fixed qry that was selecting * but only fetching 1 row