Delete query fixed