In with (someone)

In friendship or favor or closeness with someone.

The boy was in with the wrong group of people when he went to high school.