I see where("teams.id", team.id) not run but where("teams.id = ?", team.id) can run this condition