fix query to exclude participants who aren't whitelisted