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

```
Cohort.DoesNotExist: Cohort matching query does not exist.
(4 additional frame(s) were not displayed)
...
  File "ee/clickhouse/queries/sessions/list.py", line 155, in format_action_filters
    condition_sql, filter_params = format_action_filter_aggregate(entity, prepend=f"event_matcher_{index}")
  File "ee/clickhouse/queries/sessions/list.py", line 176, in format_action_filter_aggregate
    filters, filter_params = parse_prop_clauses(entity.properties, prepend=prepend, team_id=None)
  File "ee/clickhouse/models/property.py", line 41, in parse_prop_clauses
    cohort = Cohort.objects.get(pk=prop.value, team_id=team_id)
  File "django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "django/db/models/query.py", line 429, in get
    raise self.model.DoesNotExist(
```
posthog/api/test/test_insight.py
with freeze_time("2012-01-14T03:21:34.000Z"):
                for i in range(25):
                    event_factory(
                        team=self.team, event="$pageview", distinct_id="1", properties={"$some_property": f"value{i}"},
                    )
            with freeze_time("2012-01-15T04:01:34.000Z"):
                response = self.client.get(
                    "/api/insight/trend/",
                    data={
                        "events": json.dumps([{"id": "$pageview"}]),
                        "breakdown": "$some_property",
                        "breakdown_type": "event",
                    },
                )
            self.assertEqual(response.status_code, status.HTTP_200_OK)
            self.assertIn("offset=20", response.json()["next"])
        def test_insight_paths_basic(self):
            person_factory(team=self.team, distinct_ids=["person_1"])
            event_factory(
                properties={"$current_url": "/"}, distinct_id="person_1", event="$pageview", team=self.team,
            )
            event_factory(
                properties={"$current_url": "/about"}, distinct_id="person_1", event="$pageview", team=self.team,
            )
            response = self.client.get("/api/insight/path",).json()
            self.assertEqual(len(response["result"]), 1)
        def test_insight_funnels_basic_post(self):