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

ee/clickhouse/queries/column_optimizer.py
"Returns list of properties + types that this query would use"
        result: Set[Tuple[PropertyName, PropertyType]] = set()
        result |= extract_tables_and_properties(self.filter.properties)
        if self.filter.filter_test_accounts:
            test_account_filters = Team.objects.only("test_account_filters").get(id=self.team_id).test_account_filters
            result |= extract_tables_and_properties([Property(**prop) for prop in test_account_filters])
        
        #
        
        
        if self.filter.breakdown_type in ["event", "person"]:
            
            assert isinstance(self.filter.breakdown, str)
            result.add((self.filter.breakdown, self.filter.breakdown_type))
        
        for entity in self.filter.entities + cast(List[Entity], self.filter.exclusions):
            result |= extract_tables_and_properties(entity.properties)
            
            #
            
            if entity.math_property:
                result.add((entity.math_property, "event"))
            
            #
            
            if entity.type == TREND_FILTER_TYPE_ACTIONS:
                result |= get_action_tables_and_properties(entity.get_action())
        return result
    def _used_properties_with_type(self, property_type: PropertyType) -> Set[Tuple[PropertyName, PropertyType]]: