## Bug description

Sentry error: https://sentry.io/organizations/posthog/issues/2231515632/?project=1899813&query=is%3Aunassigned+is%3Aunresolved

If you have an action with property filters, you can't filter by it in sessions

## Expected behavior

Results are found

## How to reproduce

1. Create action such as below (important part is being the "filters")
![image](https://user-images.githubusercontent.com/148820/109278010-b7086780-7820-11eb-9ba1-aa979204de1e.png)
2. Go to sessions, try to filter by it
3. See 500 error from backend

## Environment

- [x] PostHog Cloud
- [ ] self-hosted PostHog, version/commit: _please provide_

## Additional context

Some notes. The error states:

```
DB::Exception: Missing columns: 'team_id' while processing query:
```

In clickhouse sessions query for filtering we embed the action filter in the outermost query layer, where team_id is not available.  

The offending query adding team_id starts here: https://github.com/PostHog/posthog/blob/51e6ccd4858455c370c8f716f617fc3a55e6a4f1/ee/clickhouse/models/action.py#L39

#### *Thank you* for your bug report – we love squashing them!

posthog/queries/sessions/test/test_sessions_list.py
return sessions.run(sessions_filter, self.team, limit=10)
        def assertLength(self, value, expected):
            self.assertEqual(len(value), expected)
        def create_test_data(self):
            with freeze_time("2012-01-14T03:21:34.000Z"):
                event_factory(team=self.team, event="$pageview", distinct_id="1")
                event_factory(team=self.team, event="$pageview", distinct_id="2")
            with freeze_time("2012-01-14T03:25:34.000Z"):
                event_factory(team=self.team, event="$pageview", distinct_id="1")
                event_factory(team=self.team, event="$pageview", distinct_id="2")
            with freeze_time("2012-01-15T03:59:34.000Z"):
                event_factory(team=self.team, event="$pageview", distinct_id="2")
                event_factory(team=self.team, event="custom-event", distinct_id="2", properties={"$os": "Windows 95"})
            with freeze_time("2012-01-15T03:59:35.000Z"):
                event_factory(team=self.team, event="$pageview", distinct_id="1")
                event_factory(team=self.team, event="custom-event", distinct_id="2", properties={"$os": "Windows 95"})
            with freeze_time("2012-01-15T04:01:34.000Z"):
                event_factory(team=self.team, event="custom-event", distinct_id="1", properties={"$os": "Mac OS X"})
                event_factory(team=self.team, event="another-event", distinct_id="2", properties={"$os": "Windows 95"})
            with freeze_time("2012-01-15T04:13:22.000Z"):
                event_factory(team=self.team, event="$pageview", distinct_id="2")
            team_2 = Organization.objects.bootstrap(None)[2]
            Person.objects.create(team=self.team, distinct_ids=["1", "3", "4"], properties={"email": "bla"})
            
            Person.objects.create(team=team_2, distinct_ids=["1", "3", "4"], properties={"email": "bla"})
        def create_large_testset(self):