Given the controversy surrounding Virginia Gov. Ralph Northam, which now includes racist pictures from his medical school yearbook, the mainstream media would theoretically work overtime to provide its viewers with accurate information about the embattled state executive.

But on Friday, CNN producers labeled Northam — who is a lifelong Democrat — a Republican.

What happened?

During "Anderson Cooper 360," host Anderson Cooper played a video clip of Northam apologizing for the racist yearbook photo. But the chyron that aired on screen identified Northam as being a member of the Republican Party.

According to Fox News, prior to airing the inaccurate chyron, Cooper correctly identified Northam's party affiliation.

CNN later acknowledged the error and deleted a tweet that included video of the misidentification. On Saturday, the network reposted the segment video with Northam's party affiliation correctly identified as being a member of the Democratic Party.

In the wake of the racist yearbook photo surfacing, Northam is facing intense pressure to resign, including from top Democratic Party leaders who are running for president in 2020. Northam has so far refused to resign.

The controversy comes after Northam earlier in the week appeared to endorse infanticide during a radio interview. Northam's office later said those comments were taken out-of-context.