diff --git a/posthog/queries/base.py b/posthog/queries/base.py index e6b0a93f5811c..1279fe088dda7 100644 --- a/posthog/queries/base.py +++ b/posthog/queries/base.py @@ -261,7 +261,8 @@ def property_to_Q( cohorts_cache: Optional[Dict[int, Cohort]] = None, using_database: str = "default", ) -> Q: - if property.type not in ["person", "group", "cohort"]: + if property.type not in ["person", "group", "cohort", "event"]: + # We need to support event type for backwards compatibility, even though it's treated as a person property type raise ValueError(f"property_to_Q: type is not supported: {repr(property.type)}") value = property._parse_value(property.value)