diff --git a/entity/Person_entity/recordcontainers/db/conditionProcess.js b/entity/Person_entity/recordcontainers/db/conditionProcess.js
index 100f909cbf3991bfb9520e924cffbc543bd49acf..a856eee0c297f691d292222ffb1b94f55df14c55 100644
--- a/entity/Person_entity/recordcontainers/db/conditionProcess.js
+++ b/entity/Person_entity/recordcontainers/db/conditionProcess.js
@@ -9,7 +9,7 @@ import("system.result");
 import("Sql_lib");
 
 var cond = newWhereIfSet("CONTACT.ORGANISATION_ID", "$param.OrgId_param")
-                .andIfSet("PERSON.CONTACT_ID", "$param.ContactId_param");
+                .andIfSet("CONTACT.CONTACTID", "$param.ContactId_param");
 
 if (vars.exists("$param.ExcludedContactIds_param") && vars.get("$param.ExcludedContactIds_param"))
 {
diff --git a/process/Sql_lib/documentation.adoc b/process/Sql_lib/documentation.adoc
index c3695fa62fe5bda13b6769f9f8f973f25682e893..2017f4b9646c06fe30bd397cb360a2663dede282 100644
--- a/process/Sql_lib/documentation.adoc
+++ b/process/Sql_lib/documentation.adoc
@@ -501,7 +501,7 @@ Here is an example code of a conditionProcess:
 // newWhereIfSet() is used to create a new condition. 
 // The 'IfSet' ignores the condition "CONTACT.ORGANISATION_ID" = "$param.OrgId_param" if "$param.OrgId_param" is null
 var cond = newWhereIfSet("CONTACT.ORGANISATION_ID", "$param.OrgId_param")
-                .andIfSet("PERSON.CONTACT_ID", "$param.ContactId_param"); // if "$param.ContactId_param" is null, this line is ignored
+                .andIfSet("CONTACT.CONTACTID", "$param.ContactId_param"); // if "$param.ContactId_param" is null, this line is ignored
 // --> If both parameters are null (not filled), then the SqlBuilder condition will not contain any condition!
 
 // Now we add a parameter containing a json Array