query where condition on foreign key relation - Drizzle Team