Only getting one record back from subqueries