Input parameter index out of range

Item Value
SQLCODE -689
Constant SQLE_BAD_PARAM_INDEX
SQLSTATE WJ005
Sybase error code 13717
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

The range for valid parameters is from 1 up to the number of host variables specified in the prepared/callable statement.