The man accused of fatally beating his socialite wife in Georgetown was rushed to a hospital Wednesday evening hours after being released, officials said.

Albrecht Gero Muth, 47, is charged with second-degree murder in the August death of 91-year-old Viola Drath, his wife of 22 years. During a Thursday hearing, D.C. Superior Court Judge Russell F. Canan said that if Muth’s situation doesn’t change, “he will be in a grave situation — if he isn’t already.”

During a Friday hearing, attorneys said Muth was hospitalized. On Thursday, officials from a Washington hospital said Muth had been released Wednesday but was rushed back later that day.

Details of Muth’s condition were discussed privately at the bench, and Canan ordered the discussion “temporarily” sealed.

Muth stopped eating two months ago and has refused medical treatment. In a Jan. 12 letter to Canan, Muth wrote that “under no circumstances whatsoever am I to be given any medical treatment!”

Canan also ruled that Muth cannot represent himself. He will be represented by attorneys from the District’s Public Defender Service.

“Mr. Muth is mentally and physically incapable of representing himself. His right to represent himself is suspended,” Canan said.

Muth fired his attorneys in November.

This item has been updated.

View Photo Gallery: The Georgetown socialite, who was found dead in August, found Muth intelligent and a good companion. Her friends were wary of him. Muth, who was married to Drath for 22 years, is charged in her death.

Read more: The Post’s crime coverage