LOS ANGELES (AP) — Fitness trainer and host of the reality TV show “Biggest Loser” Bob Harper says he is recovering from a serious heart attack that left him unconscious for two days.

Harper tells TMZ he was working out in a gym in New York City this month when he collapsed. He says a doctor who also was in the gym performed CPR on him.

READ MORE: No. 5 UCLA Beats Colorado 73-61 In Pac-12 Opener

The 51-year-old Harper says he spent eight days in a New York hospital and has not yet been cleared to fly home to Los Angeles.

READ MORE: Costa Mesa Woman Ekatarina Zharkova Arrested For Allegedly Stealing Over $300,000 In Retail Items

Harper has been a fixture on all 17 seasons of “The Biggest Loser.” He served as a trainer on the show from 2004 to 2015. He took over as host of the reality weight loss program last year.

MORE NEWS: Chargers Running back Austin Ekeler Gives Back To The Community

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