select('users.*') ->join('auth_groups_users', 'users.id = auth_groups_users.user_id') ->like('auth_groups_users.group', "podcast#{$podcastId}-") ->findAll(); } public function getPodcastContributor(int $contributorId, int $podcastId): ?User { return $this->select('users.*') ->join('auth_groups_users', 'users.id = auth_groups_users.user_id') ->where('users.id', $contributorId) ->like('auth_groups_users.group', "podcast#{$podcastId}-") ->first(); } }