Joseph E. McGettigan III, lead prosecutor in the Jerry Sandusky sex-abuse trial, is leaving the state Attorney General’s Office to join 17-attorney Berwyn, Pa.-based McAndrews Law Offices.

McGettigan and firm head Dennis McAndrews have known each other for about 20 years, having worked together when McGettigan was with the Delaware County District Attorney’s Office.