グループIDを知っている場合
select member.* from member m
inner join member_has_group mg on m.id = mg.id_member
where mg.id_group = [x]
グループ名しかわからない場合
select member.* from member m
inner join member_has_group mg on m.id = mg.id_member
inner join group g on g.id = mg.id_group
where g.name = 'group name'