3501 Internal error: Statement or subquery expected and not found.
This error occurs if the Resolver expects a statement list, a statement, or a subquery in the parse tree and some other node occurs.
System Support Representative.
This is not a user error.
Save all relevant information and the dump, and contact your support representative.