I have had this errors for a very long time:
2025-09-10 05:40:25,134 [Worker #10] ERROR Toems_DataModel.RawSqlRepository 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 (a.provision_status = 8 OR a.provision_status = 6 OR a.provision_status = ' at line 1
2025-09-10 05:41:20,838 [Worker #10] ERROR Toems_DataModel.RawSqlRepository 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 (a.provision_status = 8 OR a.provision_status = 6 OR a.provision_status = ' at line 1
I found this string is used only in one place in Toems code:
https://github.com/jdolny/Toems/blob/e55853e5212037694026c8a92ee424dc1cb48326/Toems-Service/Workflows/BuildSqlQuery.cs#L252