combine ids in one join not a loop