NEW YORK (AP) — Fitness trainer and host of NBC’s “Biggest Loser” Bob Harper says he is recovering from a serious heart attack that left him unconscious for two days.

Actor Bill Paxton Dead At 61 

READ MORE: Religious Leaders Putting Faith Into Action To Stop Gun Violence In Philadelphia

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.

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: Philadelphia Police Officer, Civilian Involved In Crash In Kingsessing, Police Say

Fashion At The 89th Annual Academy Awards 

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: Philadelphia's Furry Friends Celebrate Howl-O-Ween

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