South Philadelphia rapper Beanie Sigel was sentenced Wednesday in Delaware County court to six to 23 months on drug charges stemming from an August arrest.

Sigel, whose real name is Dwight Grant, is already in federal custody serving two years for failure to pay about $348,000 in taxes.

On August 29, Sigel and a friend were arrested by state police following a traffic stop on I-95 in Tinicum Township.

The driver, Gerald Andrews of Philadelphia, was pulled over for following another car too closely and swerving out of his lane.

During a search, Andrews was found in possession of several prescription pills and a small amount of marijuana. Sigel, who was asleep when police pulled the car over, was in possession of a bottle of unlabeled codeine syrup and $4,650 in cash. A loaded gun was found hidden in the car's center console.

The two were charged with gun and drug offenses.

Sigel pleaded guilty before Judge Michael F.X. Coll to possession of a controlled substance. The more serious firearms charges were dismissed, according to public records.

Andrews pleaded guilty to possession of a firearm and sentenced to two and a half to five years in state prison, according to Emily Harris, spokesperson for the district attorney's office.

Sigel's arrest came just as he had launched his latest album and two weeks before he was to report to federal prison.

Contact staff writer Mari A. Schaefer at 610-892-9149, mschaefer@phillynews.com or @MariSchaefer on Twitter.