Onetime Manhattan madam and political candidate Kristin Davis was sentenced to 24 months in prison for peddling prescription drugs on Wednesday in federal court in Manhattan.

Davis, 39, who claimed to have provided prostitutes to former Gov. Eliot Spitzer and later ran herself as a novelty candidate for New York City comptroller, previously did time for running a prostitution business.

Davis, dressed in a conservative business suit, told U.S. District Judge Edgardo Ramos that she had turned her life around and earned a cosmetology license since her arrest for selling pills, and asked for probation.

But the judge said he couldn't give her a break he didn't give to young minority men facing drug charges. "Prescription drugs pose the same dangers as heroin and crack," he said. "It is important that people understand this is a serious problem."

Davis pleaded guilty in March to selling hundreds of pills including amphetamines, Ambien, Soma and Xanax. She was ordered to repay $1,765, her profit on the illegal sales.