ok, I understood what you meant and have put the SQL query in a variable executed in the Execute DQL Task.
Unfortunatly still the same error. It seems it does not replace @[User::ClientID] with the ID it retrieves from the loop container.
still searching .......