GONZALES — The last of four men wanted in a July 3 shooting by a McDonald’s parking lot in Donaldsonville was arrested Monday after he showed up in court on a separate matter, deputies said.

Larry Earl Miles, 22, 924 Elizabeth St., Donaldsonville, was booked on charges of principal to attempted second-degree murder, illegal use of a weapon, disturbing the peace and aggravated assault, Ascension Parish Sheriff’s Chief Deputy Tony Bacala said.

In a separate statement Monday, Bacala said Miles told arresting officers that he “anticipated being arrested when he showed up in court, but he realized he would eventually be caught and arrested on the outstanding charges.”

According to court minutes, Miles was slated for a hearing at 1 p.m. Monday before Judge Thomas Kliebert Jr. on three counts of attempted manslaughter against Kentrell Wyre in a case dating back to March 2008.

Miles was free on $150,000 bail on those counts, and his trial was set for Aug. 29, according to court records.

Three others have already been arrested in the shootings at McDonald’s, which spilled over onto nearby Elizabeth Street. Two people were shot, but they did not have life-threatening injuries. Cars and a house were also hit, deputies said.

Bail on the new charges had not been set by Monday afternoon, deputies said.

Miles has a criminal history dating back to 2007, deputies said in the news release.