'%1' host variable must be an integer type

Error code 2640
Probable cause

You have used a host variable that is not of integer type in a statement where only an integer type host variable is allowed.