Table events
| PkID | StartDate | Title |
| 1 | 2020-08-21 | Event #1 |
| 2 | 2020-08-21 | Event #2 |
| 3 | 2020-08-22 | Event #3 |
Table eventcategories
| EventID | CategoryID |
| 1 | 40 |
| 1 | 144 |
| 2 | 144 |
| 3 | 40 |
| 3 | 146 |
I want to display events which have category 40 and categories 144 or 146.
In my example Event #1 and Event #3
I try
SELECT e.Title
FROM events e
LEFT JOIN eventcategories ec ON (ec.EventID = e.PkID)
WHERE ec.CategoryID = 40 AND ec.CategoryID IN (144,146) AND e.StartDate >= "2020-08-07"
but no results