Dr Andrew Foote loses court appeal