MySQL supports 'backslash + N' escape sequence for NULL value. I.e. the following statement:
is the same as
and it's valid. IDEA highlights the first case as an error.
Notice that this sequence is case-sensitive. Small 'n' does not work this way.
http://dev.mysql.com/doc/refman/6.0/en/null-values.html