BARNABY Joyce made a “grave error of judgement” by having an affair with former staffer Vikki Campion, Prime Minister Malcolm Turnbull said, which has led him to ban sexual relationships between ministers and staffers.