X394: Input host variable PositionNumber is incompatible with the current query.
Check your source code to ensure that your SELECT statement specifies the correct host variable and that this variable's data type is compatible with database field with it is being used.