Fix wrong substitutions.

!= in SQL is right.