SQL fix for the DeleteZone.

#423