Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND IstAktiv='1' AND NOT ((DatumEin>0 AND DatumEin>'2021-12-04') OR (DatumA...' at line 1