LOS ANGELES - Paris Hilton's release from jail may be short lived. Hours after she was sent home under house arrest Thursday for an undisclosed medical condition, the judge who put her in jail for violating her reckless-driving probation ordered her into court to decide if she should go back behind bars.

Hilton must report to court at 9 a.m. Friday, Superior Court spokesman Allan Parachini told The Associated Press.

"My understanding is she will be brought in in a sheriff's vehicle from her home," Parachini said.

The celebrity inmate was sent home from the Los Angeles County jail's Lynwood lockup shortly after 2 a.m. in a stunning reduction to her original 45-day sentence. She had reported to jail Sunday night after attending the MTV Movie Awards in a strapless designer dress.

She was ordered to finish her sentence under house arrest, meaning she could not leave her four-bedroom, three-bath home in the Hollywood Hills until next month.

City Attorney Rocky Delgadillo complained that he learned of her release the same way as almost everyone else _ through news reports.

Then, late Thursday, he filed a petition questioning whether Sheriff Lee Baca should be held in contempt of court for releasing Hilton demanding that she be held in custody. Superior Court Judge Michael T. Sauer's decision to haul Hilton back to the courtroom came shortly after.

"It is the city attorney's position that the decision on whether or not Ms. Hilton should be released early and placed on electronic monitoring should be made by Judge Sauer and not the Sheriff's Department," said Jeffrey Isaacs of the city attorney's office.

Sauer himself had expressed his unhappiness with Hilton's release before Delgadillo asked him to return her to court. When he sentenced Hilton to jail last month, he ruled specifically that she could not serve her sentence at home under electronic monitoring.

Delgadillo's office indicated that it would argue that the Sheriff's Department violated Sauer's May 4 sentencing order.

As word spread earlier Thursday that the 26-year-old poster child for bad celebrity behavior was back home, radio helicopter pilots who normally report on traffic conditions were dispatched to hover over her house and describe it to morning commuters. Paparazzi photographers on the ground quickly assembled outside its gates.

Hilton herself kept a low profile, although late in the morning a man arrived outside her house with a supply of cupcakes he said she had instructed him to distribute to the media horde.

Her parents also arrived and briefly entered, then left, the home.

Shortly before noon, Hilton issued a statement through her attorney.

"I want to thank the Los Angeles County Sheriff's Department and staff of the Century Regional Detention Center for treating me fairly and professionally," she said. "I am going to serve the remaining 40 days of my sentence. I have learned a great deal from this ordeal and hope that others have learned from my mistakes."

Attorneys differed on whether her treatment was unusual.

"She would have gotten out early if she was plain Jane," said Leonard Levine, who has handled numerous probation violation cases. He noted that overcrowding in the Los Angeles County jail system has led to thousands of nonviolent offenders serving only 10 percent of their sentences. "She did as much time as a normal person would have done."

Loyola University law professor Laurie Levenson said that she suspected the deal for Hilton's early release was in the works even before she entered the jail system - and that officials probably were anxious to get her out of their custody.

"The time and resources needed to take care of a Paris Hilton are huge," she said. "They have to make sure she is safe and her medical needs are attended to. Everything they did was going to be looked at under a microscope."

Levine said that with rewards being offered for pictures of Hilton in custody, jail officials would have had to monitor the cell phone cameras of every employee.

Rene Seidel of the Los Angeles County Department of Health Services said he had "never heard of" an inmate being released from jail for a medical condition.

Inmates with a cold are sent to a jail clinic, he said, and the seriously ill go to the jail ward of the Los Angeles County-USC Medical Center.

Hilton's path to jail began Sept. 7, when she failed a sobriety test after police saw her weaving down a Hollywood street in her Mercedes-Benz on what she said was a late-night run to a hamburger stand.

She pleaded no contest to reckless driving and was sentenced to 36 months' probation, alcohol education and $1,500 in fines.

In the months that followed she was stopped twice by officers who discovered her driving on a suspended license. The second stop landed her in Sauer's courtroom, where he sentenced her to jail.

Associated Press writer John Rogers contributed to this report.

On the Net: L.A. City Attorney motion for hearing from TMZ.com.