Newmarket-based trainer James Ferguson ended a winless spell stretching back some 70 days and 48 runners when Deauville Legend recorded a game victory in the Group Three Bahrain Trophy on day one of the Moët & Chandon July Festival, Ladies Day, at Newmarket.