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

```
ValueError: Property type does not have a table: cohort
(1 additional frame(s) were not displayed)
...
  File "ee/clickhouse/models/cohort.py", line 239, in recalculate_cohortpeople
    cohort_filter, cohort_params = format_person_query(cohort, 0, custom_match_field="id")
  File "ee/clickhouse/models/cohort.py", line 59, in format_person_query
    prop_query, prop_params = get_properties_cohort_subquery(cohort, group, group_idx)
  File "ee/clickhouse/models/cohort.py", line 79, in get_properties_cohort_subquery
    filter_query, filter_params = prop_filter_json_extract(
  File "ee/clickhouse/models/property.py", line 89, in prop_filter_json_extract
    property_table(prop), prop.key, f"%(k{prepend}_{idx})s", prop_var, allow_denormalized_props
  File "ee/clickhouse/models/property.py", line 191, in property_table
    raise ValueError(f"Property type does not have a table: {property.type}")
```
ee/clickhouse/models/property.py
table: TableWithProperties, property_name: PropertyName, var: str, prop_var: str, allow_denormalized_props: bool
) -> Tuple[str, bool]:
    materialized_columns = get_materialized_columns(table) if allow_denormalized_props else {}
    
    if allow_denormalized_props and property_name in materialized_columns and table == "events":
        return materialized_columns[property_name], True
    return f"trim(BOTH '\"' FROM JSONExtractRaw({prop_var}, {var}))", False
def box_value(value: Any, remove_spaces=False) -> List[Any]:
    if not isinstance(value, List):
        value = [value]
    return [str(value).replace(" ", "") if remove_spaces else str(value) for value in value]
def get_property_values_for_key(key: str, team: Team, value: Optional[str] = None):
    parsed_date_from = "AND timestamp >= '{}'".format(relative_date_parse("-7d").strftime("%Y-%m-%d 00:00:00"))
    parsed_date_to = "AND timestamp <= '{}'".format(timezone.now().strftime("%Y-%m-%d 23:59:59"))
    if value:
        return sync_execute(
            SELECT_PROP_VALUES_SQL_WITH_FILTER.format(parsed_date_from=parsed_date_from, parsed_date_to=parsed_date_to),
            {"team_id": team.pk, "key": key, "value": "%{}%".format(value)},
        )
    return sync_execute(
        SELECT_PROP_VALUES_SQL.format(parsed_date_from=parsed_date_from, parsed_date_to=parsed_date_to),
        {"team_id": team.pk, "key": key},
    )
def filter_element(filters: Dict, prepend: str = "") -> Tuple[str, Dict]: