ı meet same problems . You should change data provider as ODBC in sql assistant .
I case of this error that i noticed is when you copy a sql shared by other from outlook email, ms word documents. The cause in this case is a special characters in the begining of quoted strings like below.
SyntaxEditor Code Snippet
COMPANY_CODE ) IN (' ALL')
see that emtpy string before ALL, which was causing same error for me. Got fixed after looking carefully and removing all of these additional spaces.