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 'or pd.caDocentenId_Lotus=) and pd.datum='2020-1-1' and p.id=pd.caProjectenId and' at line 13