@encthenet I don't think you can use Python's own `and` and `or` operators. I seem to remembee that that won't work as expected, and the manual doesn't mention their use. Either make two chained `.where()` calls, or import and use `and_()` and `or_()`.https://docs.sqlalchemy.org/en/20/tutorial/data_select.html#the-where-clause