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

ee/clickhouse/queries/funnels/base.py
self, entities=None, entity_name="events", skip_entity_filter=False, skip_step_filter=False
    ) -> str:
        entities_to_use = entities or self._filter.entities
        event_query, params = FunnelEventQuery(filter=self._filter, team_id=self._team.pk).get_query(
            entities_to_use, entity_name, skip_entity_filter=skip_entity_filter
        )
        self.params.update(params)
        if skip_step_filter:
            steps_conditions = "1=1"
        else:
            steps_conditions = self._get_steps_conditions(length=len(self._filter.entities))
        all_step_cols: List[str] = []
        for index, entity in enumerate(entities_to_use):
            step_cols = self._get_step_col(entity, index, entity_name)
            all_step_cols.extend(step_cols)
        steps = ", ".join(all_step_cols)
        select_prop = self._get_breakdown_select_prop()
        breakdown_conditions = self._get_breakdown_conditions()
        extra_conditions = "AND prop != ''" if select_prop else ""
        extra_conditions += f"AND {breakdown_conditions}" if breakdown_conditions and select_prop else ""
        return FUNNEL_INNER_EVENT_STEPS_QUERY.format(
            steps=steps,
            event_query=event_query,
            steps_condition=steps_conditions,
            select_prop=select_prop,
            extra_conditions=extra_conditions,
        )
    def _get_steps_conditions(self, length: int) -> str: