NEW YORK (AP) – A former Dallas-based food company executive who admitted feeding inside information to an influential Las Vegas gambler linked to golfer Phil Mickelson has been sentenced in New York to two years in prison.

A federal judge imposed the sentence Thursday on former Dean Foods Co. chairman Thomas Davis.

READ MORE: Houston Woman And Boyfriend Arrested After Child's Skeletal Remains Found Among Abandoned Siblings

The judge acknowledged Davis was a pivotal cooperator who testified at trial against gambler William “Billy” Walters. Mickelson had to repay $1 million in stock profits after receiving a tip from Walters but wasn’t charged.

READ MORE: Severe Storms Rattle North Texas, Wind Advisory Wednesday Afternoon | Latest Alerts

The judge criticized Davis for lying to the Securities and Exchange Commission and going on a gambling junket after pleading guilty. Davis apologized and must surrender Jan. 9.

Walters was convicted of making $40 million through illegal trading and was sentenced to five years in prison. His lawyer said the prosecution was based on lies.

MORE NEWS: Damaged Natural Gas Line Shuts Down 2 Blocks In Downtown Fort Worth, Condo Building Evacuated

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)