I can't find a link, so the following is based solely on my recollection of the news article in the San Diego Union. This occurred 5-7 years ago.
A man was visiting his sister in Vista, CA (north San Diego County). He was pulled over while driving her car because it was missing a front license plate. Turns out the man had the same name and birthdate as a man wanted for murder in LA (his weight and height did not match).
He is arrested and spends the night in a San Diego jail, where a rape attempt on him was prevented by another inmate. The next day, he is transported to a LA county jail. I don't remember how long he there before he got a hearing. The judge immediately threw out the case. You would think he would be released then. Instead he had to spend another half-day in jail, where he was forced to clean the toilets. He asked for, but was denied, gloves to prevent disease.
He was finally released in downtown LA in the middle of night. He had no money and they had lost his shirt. Fortunately, another inmate lent him some money so he could call his sister and a shirt. He took a taxi back to San Diego county, where his sister paid the fare.
I know he filed suit, but I don't know the outcome.

