The syntax of the SQL statement is checked when it enters the prompter.
The prompter does not accept a syntactically incorrect statement. You must correct the syntax or remove the incorrect part of the statement or prompting will not be allowed.