not selecting primaries for subqueries