diff --git a/entity/VisitRecommendation_entity/recordcontainers/jdito/onDelete.js b/entity/VisitRecommendation_entity/recordcontainers/jdito/onDelete.js
index e63bd391cfc137ff9a12eaa47bef9002f2d79875..56f6213679982f9854442412db97ea434168e409 100644
--- a/entity/VisitRecommendation_entity/recordcontainers/jdito/onDelete.js
+++ b/entity/VisitRecommendation_entity/recordcontainers/jdito/onDelete.js
@@ -1,5 +1,5 @@
 import("Sql_lib");
 import("system.vars");
 
-newWhere("AB_ATTRIBUTE.AB_ATTRIBUTEID", "$field.UID")
+newWhere("VISITRECOMMENDATION.VISITRECOMMENDATIONID", "$field.UID")
     .deleteData();
\ No newline at end of file