You have attempted to issue SET FILTER TO on an expression that is not a logical expression. For more information, see Creating Logical Expressions.