BALTIMORE (AP/WJZ) — Brian Frosh wins the Democratic nomination for Md. attorney general. He faces Republican Jeffrey Pritzker and Libertarian Leo Wayne in November. Neither of them had primary competition.

Derek Valcourt reports on the very close race.

READ MORE: 18-Year-Old Man Shot On Morgan State Campus Saturday

With more than two decades as a lawmaker in Annapolis, Sen. Frosh has made some powerful allies while serving as chair of Judicial Proceedings Committee.

Frosh, a legislator for 28 years, earned the endorsements of Gov. Martin O’Malley and many other top Maryland Democrats, but he lacked the widespread name recognition of Del. Jon Cardin, nephew of U.S. Sen. Ben Cardin, D-Md.

“I’ve been a leader on a variety of things, the gun legislation that we passed last year that’ll make Maryland safer. I’ve been the sponsor of the Maryland Recycling Act  . . . I’ve been around, but I’ve been effective,” Frosh said.

Cardin took heat during the race for missing numerous committee votes — absences he says were due to health concerns for his pregnant wife.

READ MORE: Mervo High Football Player Elijah Gorham Remembered During Memorial Service

Frosh also criticized Cardin for praising Baltimore rapper Ski Money, who endorsed the delegate, before Cardin learned the musician, whose legal name is Lawrence Christian, had been charged in connection with a prostitution case. Cardin rejected the endorsement but not before a picture of him posing with Money was posted on social media.

Cardin also confronted embarrassing reminders of his 2009 marriage proposal involving a Baltimore police boat and police helicopter in Baltimore’s Inner Harbor. Police pretended to search for contraband on a boat carrying Cardin and his friends until Cardin popped the question to his current wife, Megan. He has apologized repeatedly for the stunt and reimbursed the city $300.

“Whomever is the attorney general needs to make sure that they’re looking at the future and understanding not only the problems of today but also the problems of the future,” Cardin said.

Del. Aisha Braveboy of Prince George’s County was also in the race.

The race is now over for Cardin and Braveboy, but the race has just begun for Frosh. He now goes onto to compete against Pritzker and Wayne in the general election.

MORE NEWS: Person Shot, Seriously Wounded In Linthicum Shooting Saturday

(Copyright 2013 by The Associated Press. All Rights Reserved.)