Sentry Issue: [POSTHOG-36X](https://sentry.io/organizations/posthog/issues/2508108850/?referrer=github_integration)

ee/clickhouse/queries/funnels/base.py
step_conditions: List[str] = []
        for index in range(length):
            step_conditions.append(f"step_{index} = 1")
        return " OR ".join(step_conditions)
    def _get_step_col(self, entity: Entity, index: int, entity_name: str) -> List[str]:
        step_cols: List[str] = []
        condition = self._build_step_query(entity, index, entity_name)
        step_cols.append(f"if({condition}, 1, 0) as step_{index}")
        step_cols.append(f"if(step_{index} = 1, timestamp, null) as latest_{index}")
        return step_cols
    def _build_step_query(self, entity: Entity, index: int, entity_name: str) -> str:
        filters = self._build_filters(entity, index)
        if entity.type == TREND_FILTER_TYPE_ACTIONS:
            action = entity.get_action()
            for action_step in action.steps.all():
                self.params[entity_name].append(action_step.event)
            action_query, action_params = format_action_filter(action, "{}_step_{}".format(entity_name, index))
            if action_query == "":
                return ""
            self.params.update(action_params)
            content_sql = "{actions_query} {filters}".format(actions_query=action_query, filters=filters,)
        else:
            self.params[entity_name].append(entity.id)
            event_param_key = f"{entity_name}_event_{index}"
            self.params[event_param_key] = entity.id
            content_sql = f"event = %({event_param_key})s {filters}"
        return content_sql
    def _build_filters(self, entity: Entity, index: int) -> str: