diff --git a/posthog/hogql/database/schema/cohort_people.py b/posthog/hogql/database/schema/cohort_people.py index f7bade6d3278d..f98b522672602 100644 --- a/posthog/hogql/database/schema/cohort_people.py +++ b/posthog/hogql/database/schema/cohort_people.py @@ -53,7 +53,9 @@ def select_from_cohort_people_table(requested_fields: Dict[str, List[str | int]] exprs=[ast.Field(chain=[table_name, "cohort_id"]), ast.Field(chain=[table_name, "version"])] ), right=ast.Constant(value=cohort_tuples), - ), + ) + if len(cohort_tuples) > 0 + else ast.Constant(value=False), )