Los Angeles County sheriff's officials are trying to figure out how a comedian who unleashed a string of racist and raunchy jokes was hired to entertain at a law enforcement event Wednesday.

"It's a lesson learned," said sheriff's spokesman Steve Whitmore. "It's not gonna happen again."

Many in the crowd at the Sheriff's Day Luncheon on Wednesday, estimated to be between 600 and 700 people, were dressed in their uniforms, including Sheriff Lee Baca, who thanked comedian Edwin San Juan with a plaque after the off-color performance.

"He managed to insult every ethnic group," said one attendee, who requested that his name not be used. "I was sitting there thinking, 'Are you kidding me?'"

Read the full Los Angeles Times story.