Trouble getting query to work with subquery - Drizzle Team