I believe the form of an expression in a WHERE clause is a bit more general, such as WHERE #expression1# #operator# #expression2#
But man, I just figured out what I did wrong in that SQL-query, and indeed, it was just a simple syntax error.
The syntax of the CASE construct is of the form "CASE...