Con ANSI_NULLS OFF, NULL = NULL restituisce TRUE. Con ANSI_NULLS ON, restituisce NULL. NULL IS NULL restituisce sempre TRUE.
In MySQL non puoi disattivare ANSI_NULLS. Probabilmente stai pensando a MS SQL Server.
La cosa migliore è lasciare ANSI_NULLS ON e usare IS NULL. Pensa a NULL come “sconosciuto”: confrontare due valori sconosciuti produce ancora un risultato sconosciuto.