diff -r d3341b186540 modules/org.openbravo.utility.cleanup.log/src/org/openbravo/utility/cleanup/log/CleanEntity.java
--- a/modules/org.openbravo.utility.cleanup.log/src/org/openbravo/utility/cleanup/log/CleanEntity.java	Wed Oct 02 18:02:37 2019 +0200
+++ b/modules/org.openbravo.utility.cleanup.log/src/org/openbravo/utility/cleanup/log/CleanEntity.java	Thu Oct 10 09:58:36 2019 +0200
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2013-2015 Openbravo SLU 
+ * All portions are Copyright (C) 2013-2019 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -71,7 +71,7 @@
       ProcessLogger bgLogger) {
     Entity entity = ModelProvider.getInstance().getEntityByTableId(config.getTable().getId());
 
-    String hql = "delete from " + entity.getName();
+    String hql = "delete from " + entity.getName() + " e";
 
     String where = "";
     if (config.getOlderThan() != 0L) {
