Mississippi police who detained a 10-year-old boy for public urination are apologizing for the incident and calling it an “error in judgement.”

The boy’s mother, Latonya Eason, tells WHBQ-TV that she was at an attorney’s office in Senatobia, just south of Memphis, when a police officer came in and told her that he caught her son urinating behind her car outside.

Eason said she asked her son Quantavious why he would to that, and he responded by saying that his sister told him there wasn’t a bathroom inside. She told him that he knows better and should have asked her if there was a bathroom.

That’s when the officer told her: “Since you handled it like a mom, then he can just get back in the car,” she told the station, adding that the officer said he was going to give Quantavious a court referral.

Eason thought the matter was resolved but then more police officers pulled up, and things took a turn for the worse.

‘Speechless’

When more police arrived, Eason said a lieutenant told the family that the boy had to go to jail for urinating in public.

“I’m just speechless right now. Why would you arrest a 10-year-old kid?” she told the station. “For one officer to tell my baby to get back in the car, it was OK — and to have the other pull up and take him to jail. Like, no.”

The whole thing had the boy shaken up, he told the station.

“I get scared and start shaking and thinking I am going to jail,” he said.

A photo posted to social media shows the boy sitting in the back of a patrol car.

“I started crying a little bit,” he said. “They took me down there and got me out of the truck. I didn’t know what was happening.”