## Bug description

When you create a trend with two lines, one of which is say $pageview with a filter of browser = chrome and the other is ALSO $pageview but a different filter.

If you click on any the line you get the same users in the persons modal, even if you switch the trend line toggle in the modal.

## How to reproduce

1. Create a new trend
2. Add a $pageview trendline, and another $pageview trendline with a subfilter
3. Click on any of the lines
4. Open the persons modal and switch between the trend lines in the persons modal

## Environment

- [x] PostHog Cloud
- [ ] self-hosted PostHog (ClickHouse-based), version/commit: _please provide_
- [ ] self-hosted PostHog (Postgres-based, legacy), version/commit: _please provide_

## Additional context



#### *Thank you* for your bug report – we love squashing them!

posthog/api/utils.py
SELECT {raw_event_definition_fields} FROM posthog_eventdefinition
            """
        )
        return f"""
        SELECT * FROM (
            {event_definition_table}
            {shared_conditions}
            UNION
            SELECT {raw_action_fields} FROM posthog_action
            {shared_conditions} AND posthog_action.deleted = false
        ) as T
        {ordering}
        """
    raw_event_definition_fields = ",".join(event_definition_fields)
    return (
        f"""
        SELECT {raw_event_definition_fields}
        FROM ee_enterpriseeventdefinition
        FULL OUTER JOIN posthog_eventdefinition ON posthog_eventdefinition.id=ee_enterpriseeventdefinition.eventdefinition_ptr_id
        {shared_conditions}
        {ordering}
    """
        if is_enterprise
        else f"""
        SELECT {raw_event_definition_fields} FROM posthog_eventdefinition
        {shared_conditions}
        {ordering}
    """
    )