In this blog post, you’ll learn more about the Sybase Error Wrong number of variables in FETCH and the reason for receiving this error
Sybase SQL Error Message
Wrong number of variables in FETCH
Reason for this Error
You specified a number of variables in a FETCH statement that does not match the number of SELECT list items.