In this blog post, you’ll learn more about the Sybase Error Host variables must not be used in this context and the reason for receiving this error
Sybase SQL Error Message
Host variables must not be used in this context
Reason for this Error
You have attempted to use a host variable in a statement at a location that does not support host variables.