Last week David Duchovny booked himself in rehab for sex addiction.

We thought he was just addicted to Internet porn.

But it turns out David has been cheating on his wife Tea Leoni for years.

Sex obsessed David allegedly agreed to seek treatment after heartbroken Tea Leoni discovered his cheating ways and threatened to divorce him.

‘He said Tea gave him an ultimatum: Get treatment or our marriage is over,’ a source is quoted as telling the National Enquirer.

‘She felt it was ruining their marriage and affecting their kids.’

According to the source, Duchovny has admitted that he is compulsively driven to be unfaithful and finds it impossible to turn down the legions of women who offer themselves to him.

Leoni is said to have grown suspicious of her husband’s behaviour in recent months and after questioning him on a number of occasions, the 48-year-old finally admitted that he had been cheating on her.

Duchovny checked into The Meadows facility in Arizona last week and is currently completing a 35 day course. His wife has been to visit him at the centre several times.

‘Tea drove to The Meadows every day during the four days she was in town,’ the source is quoting as saying.

We hope David and Tea can sort things out…they seem to be such a lovely couple.