Inconsistent number of host variables for this cursor

Error code 2690
Probable cause

You have used a different number of host variables than the number previously used with the cursor. The number of host variables must be consistent for the cursor.