Type error when using subquery in where - Drizzle Team