In this blog post, you’ll learn more about the Sybase Error Expression of type %1 is not allowed in this context (near: %2) and the reason for receiving this error
Sybase SQL Error Message
Expression of type %1 is not allowed in this context (near: %2)
Reason for this Error
You tried to use an expression in a context that does not permit expressions of that type.