GettyImages-493356399
Joe Jackson attends the Clouds Of Sils Maria premiere during the 67th Annual Cannes Film Festival on May 23, 2014 in Cannes, France. Getty Images

Joe Jackson, 87, reportedly took three Viagra pills before suffering from three heart attacks and a stroke, the Daily Mail reported. Jackson was admitted to a hospital in Sao Paulo, Brazil on July 26 after a night of partying and was released on Tuesday.

Jackson arrived in Brazil two weeks ago for his $200,000 birthday celebration, but was rushed to the hospital on the eve of his party. Since he arrived in the country, Jackson had been spotted several times with younger women at upscale restaurants and partying until the early morning. Previously, sources had said that Jackson could not handle the constant partying and that he had mixed alcoholic drinks. But new reports suggest he took “three little blue pills” to help with erectile dysfunction before he became ill.

Leo Dias, a celebrity columnist for O Dia Tabloid, said that Jackson had been visiting an area in Sao Paulo known for its low-rent prostitution when he took the Viagra pills, the Daily Mail reported.

Jackson's public relations assistant Lisa Crazy denied that Viagra was the culprit. “He sleeps early and doesn't take medicine without prescription,” said Crazy. "Nothing of this story is true.”

Charles Coupet, Jackson’s representative, also denied the Viagra reports. “He had a headache, took some medicine, and it went away,” said Coupet, Radar Online reported. “But afterwards he wasn’t feeling well. It was then that we decided he needed medical exams. He had to be rushed to hospital.”

Jackson suffered from three cardiac arrests and missed his birthday party, but demanded the bash go on without him. Jackson was between life and death, according to Coupet, and he had to have surgery to have a pacemaker inserted into his chest. He will reportedly fly back to the U.S. for further treatment as soon as doctors say he is in stable enough condition to travel.