## Bug description

Sentry error: https://sentry.io/organizations/posthog/issues/2588698757/events/62db81be9cbe44638988eda3dc72ad8c/?project=1899813

## Expected behavior

Don't fail

## How to reproduce

1. Create an action with a person filter (e.g. `User Signed Up (self-hosted)` on cloud)
2. Try to graph that action
3. See no results, error in backend

## 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

`ClickhouseEventQuery._determine_should_join_persons` does not resolve action type entity properties. Rather than do it there we can likely piggy-back off of `ColumnOptimizer` here.

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

posthog/queries/test/test_trends.py
entity = Entity({"id": "$pageview", "name": "$pageview", "type": TREND_FILTER_TYPE_EVENTS})
            num_label = breakdown_label(entity, 1)
            self.assertEqual(num_label, {"label": "$pageview - 1", "breakdown_value": 1})
            string_label = breakdown_label(entity, "Chrome")
            self.assertEqual(string_label, {"label": "$pageview - Chrome", "breakdown_value": "Chrome"})
            nan_label = breakdown_label(entity, "nan")
            self.assertEqual(nan_label, {"label": "$pageview - Other", "breakdown_value": "Other"})
            none_label = breakdown_label(entity, "None")
            self.assertEqual(none_label, {"label": "$pageview - Other", "breakdown_value": "Other"})
            cohort_all_label = breakdown_label(entity, "cohort_all")
            self.assertEqual(cohort_all_label, {"label": "$pageview - all users", "breakdown_value": "all"})
            cohort = cohort_factory(team=self.team, name="cohort1", groups=[{"properties": {"name": "Jane"}}])
            cohort_label = breakdown_label(entity, f"cohort_{cohort.pk}")
            self.assertEqual(cohort_label, {"label": f"$pageview - {cohort.name}", "breakdown_value": cohort.pk})
        def test_breakdown_filtering(self):