Yeah, in javascript `null == null` and `null === null` but SQL has `NULL != NULL`: http://dev.mysql.com/doc/refman/5.6/en/problems-with-null.html paragraph 4