SQL: Fix fail in 7facda2002e80401ce71ab7562042293eba62ad6