Changed $post_id to $params for get_matching_groups