Fix alias usage for delete query