why the query is not failing the syntax check

Original text of this message