A former attorney who represented Salt Lake City and its police department for more than a decade pleaded guilty Friday to reduced criminal charges in connection with a clandestine drug operation that he — along with his two adult sons — ran from the family’s Sugar House home.

James Wesley Robinson, 51, entered guilty pleas in 3rd District Court to second-degree felony operation of a clandestine lab, second-degree felony drug possession and third-degree felony possession of a firearm by a restricted person.

In exchange for Robinson’s plea, Salt Lake County prosecutors reduced the clandestine lab count from a first-degree felony and dropped four other counts of possession of a firearms by a restricted person and a misdemeanor drug possession count.