'Thank you to the doctors and nurses who looked after me': Mel B uses eagerly-anticipated X Factor return to thank medical staff during mystery illness

She has recently suffered a mysterious illness which threatened to exclude her from the X Factor final.

But Melanie B made a defiant return to the ITV talent show on Sunday - and used it to thank medical staff who treated her when she was hospitalised.

'I'd like to thank the doctors and nurses who looked after me and got me here tonight,' she said.    

Scroll down for video

She's back:Mel B thanked medical staff as she rejoined Simon Cowell, Cheryl Fernandez-Versini and Louis Walsh on The X Factor judging panel on Sunday night

She's back:Mel B thanked medical staff as she rejoined Simon Cowell, Cheryl Fernandez-Versini and Louis Walsh on The X Factor judging panel on Sunday night

The comments garnered a cheer from the crowd, before host Dermot O'Leary asked: Are you better now?' to which she replied 'A little - yes'.

Only on Sunday evening, with hours to spare, was it confirmed that Mel B had been discharged from hospital and deemed well enough by doctors to return for the live show, which saw Ben Haenow win the ITV singing competition.

The former Spice Girl - who was replaced by former X Factor judge Tulisa Contostavlos in her absence on Saturday - was reportedly being treated for a suspected stomach ulcer.

Confirmation: The official X Factor Twitter account revealed that Mel was well enough to return 

Confirmation: The official X Factor Twitter account revealed that Mel was well enough to return 

A statement on The X Factor's official Twitter account read: 'Mel B is back on #XFactor tonight. 'After the hospital discharged her & following medical advice Mel is deemed well enough for the show.' 

An X Factor spokesman said: 'After being discharged from hospital and following medical advice, Mel has been deemed well enough to do the show.

'We're delighted to have her back on the panel.' 

Mel unfortunately missed her last remaining act Andrea Faustini leaving the competition in third place the previous evening. 

Meltdown: Mel B's sister Danielle Brown was so worried about her sister on Sunday that she launched an astonishing appeal for information on Twitter

Meltdown: Mel B's sister Danielle Brown was so worried about her sister on Sunday that she launched an astonishing appeal for information on Twitter

It's been a dramatic few days for Mel B and things have kicked up a notch with a desperate Twitter plea from her sister Danielle Brown, 26.  

Mel, 39, was reportedly receiving treatment for a suspected stomach ulcer which left her 'screaming in agony' and led to her chauffeur rushing her to hospital prior to an X Factor press conference and rehearsal session on Thursday afternoon.

And earlier on Sunday, her estranged sister, who fell out with Mel over her concerns about the former Spice Girl singer's husband Stephen Belafonte, launched a Twitter tirade calling for him, Mel's fellow X Factor judge Simon Cowell and even her PR firm, to get in touch with the family about her condition. 

Danielle began by retweeting her mother Andrea's message and adding a few words of her own. '@ANDREA_m_BROWN: Mothers worse nightmare to hear ur daughters seriously Ill in hosp and not know where to go!!' It's just horrific!!!!!!,' it read. 

 Lashing out: Danielle took to Twitter to share her worry about Mel's mysterious condition 

 Lashing out: Danielle took to Twitter to share her worry about Mel's mysterious condition 

Then she launched into numerous tweets, revealing her worry and fears over Mel's condition. 

'This is ridiculous and cruel !!! Evil ! How can NO one tell me and my family where my sister is and what is going on?????

'Just a simple call to say she gonna be ok is all it takes!!!!,' she wrote.[sic]

Then she directly addressed Simon Cowell, who is reportedly extremely worried about his fellow judge.

Worry: Mel's mother Andrea has admitted she is worried about her daughter 

Worry: Mel's mother Andrea has admitted she is worried about her daughter 

Danielle wrote: '@SimonCowell How can NO one tell me and my family where my sister is and what is going on????? Can you please help? Or who can we contact?' 

And then she moved on to Stephen, with whom she has always had a frosty relationship. 

Danielle wrote: 'STOP @stephenthinks1 with your evil lies!! You told me and my mum yesterday she is fine and not in hospital @SimonCowell just doing press!

'@stephenthinks1 and now you say she is sick but ok Where is my sister??? What have you done??

'@stephenthinks1 if I have 2go press I will! Ive recorded all your calls 4 the past week including your 330am abusive call and Mel visit 2dad.'

The meltdown ended with a 'desperate' plea for help. 

She tweeted: 'I am beyond desperate and this should be a private family matter!! But we don't know what else to do if anyone at all can help then pls do!'

Meanwhile, it is believed that the quick reaction of Mel's driver on Thursday were instrumental in getting Mel the medical help she needed. 

Sources told The Sun on Sunday that her quick-thinking driver raced to an undisclosed hospital, where Mel is thought to be undergoing tests for ulcers and viruses in a bid to determine the exact cause of her sudden illness. 

Absent: Mel B was rushed to hospital after suffering excruciating stomach pains and on Saturday evening, her one remaining contestant, Andrea Faustini, lost out to Ben Haenow and Fleur East for a place on Sunday's show

Absent: Mel B was rushed to hospital after suffering excruciating stomach pains and on Saturday evening, her one remaining contestant, Andrea Faustini, lost out to Ben Haenow and Fleur East for a place on Sunday's show

A friend said: 'Mel is in a terrible state, physically and emotionally. She is very weak and is being given treatment to help her with the pain.'

And the source claims source Mel 'could have died' were it not for her chauffeur. 

There were varying reports about Belafonte – the father of three-year-old Madison, her third child – with The Sun claiming, 'Nobody knows where Stephen is,' while TheSunday People said he has been by her side throughout.

And Simon Cowell was said to be extremely worried.

A source told The Sunday People: 'Everyone is very worried. Simon has been in constant touch with her husband to keep updated. Simon hasn't spoken to Mel because she can't use her phone but has been fully informed about her condition.' 

Familiar face: The former Spice Girl's absence saw former judge Tulisa Contostavlos step in at the eleventh hour on Saturday night 

Familiar face: The former Spice Girl's absence saw former judge Tulisa Contostavlos step in at the eleventh hour on Saturday night 

A source added to the Sunday Mirror: 'Simon has admitted to being very, very worried about Mel. She is such a livewire - everyone is really stunned at how quickly this illness took hold of her. Simon is in shock - we are all in shock.' 

The dramatic episode has cast a dark shadow over the final, with former judge Tulisa Contostavlos stepping in at the eleventh hour for ailing Mel on Saturday evening. 

On Saturday Mel's mother Andrea Brown, with whom the former Spice Girl is estranged, tweeted: 'Mother's worse nightmare to hear ur daughter's seriously ill in hosp and not know where to go!!' 

What's the real story? Husband Stephen Belafanote is 'yet to visit' Mel in hospital, according to sources while others have claimed he is by her side 

What's the real story? Husband Stephen Belafanote is 'yet to visit' Mel in hospital, according to sources while others have claimed he is by her side 

According to the source Mel's closest friends initially struggled to determine how serious her condition was because she wasn't answering calls.

When it became clear she was too unwell to make the first part of this year's final, N-Dubz star Tulisa – labelled the 'super-sub' by host Dermot O'Leary on Saturday night – was drafted in.

The incident is thought to be a huge blow for Mel, whose debut year has otherwise been a huge success, with fans warming to her direct approach. 

The source added: 'She felt at the top of her game. Those around her are now just hoping she can bounce back.'  

MailOnline have contacted Mel B's representatives for further comment.  

Popular: Mel's direct approach has gone down well with fans 

Popular: Mel's direct approach has gone down well with fans