Hi Gabriel,
There are some changes that could effected your query but it's most likely a simple grammar mistake.
Document Exchange (http://dcx.sap.com/index.html#sa160/en/sqlanywhere_en16/help_top_index.htm) is a good source of SQL Anywhere information.