All he said to her was use "the accused." Do we know for a fact that she wasn't sanctioned? If she clearly violated the Rape Shield Law then someone slipped up or it may come back to haunt her.
Rita Cosby on Greta said that after Mackey mentioned the 3 men that the judge immediately put his hands on table, asked everyone to go to his chambers and asked the press to leave. I wasn't sure if it happend after Mackey mentioned the victim's name seven times.
It happened after the defense lawyer said the woman's name repeatedly in court with the press present.
It doesn't matter that the press already knew her name. It's a way to intimidate the woman.