DUBLIN — The Alameda County Sheriff’s deputy arrested for allegedly facilitating an attack on an inmate at the Santa Rita Jail appeared before a judge Friday hours before his arraignment was scheduled.

Joseph Robert Bailey, 28, of Tracy, was arraigned and pleaded not guilty to two felony charges: assault by a public officer and assault with force likely to cause great bodily injury for allegations related to facilitating an inmate attack.

Bailey, an employee of the sheriff’s office since 2015, is said to have directed six inmates to beat up another inmate, with whom Bailey had an argument just an hour before on Oct. 24, 2017.

He told the six men to “take care of him and make it look like he fell in the shower,” according to a probable cause statement.

Bailey’s arraignment was scheduled for 2 p.m. at the East County Hall of Justice in Dublin, but occurred instead early Friday morning, with no media present. All court calendars, the Odyssey criminal court system and the district attorney’s office announcement when his charges were filed, stated the later time.

Judy Odbert, of the Sacramento-based Mastagni Holstedt law firm, said they were given the time of 9 a.m. when he posted bail on Wednesday.

Rebecca Richardson, spokeswoman for the district attorney’s office said typically out-of-custody arraignments are held in the morning, and in-custody in the afternoon. She apologized for the confusion and could not explain the scheduling mixup.

According to court records, Bailey is accused of allegedly moving an inmate from one part of the jail, Housing Unit 32 to D-Pod, and telling other inmates that he was a member of a rival gang. He had just gotten into an argument with the victim inmate an hour before, when the inmate claimed he would see Bailey out on the streets, according to court documents.

Bailey is the fifth Alameda County Sheriff’s deputy to be arrested in recent months, also for the alleged mistreatment of inmates. In August, four other sworn deputies were arrested for allegedly facilitating and allowing an inmate to throw bodily fluids, including feces and urine, onto other inmates housed in a maximum security unit of the jail. The investigation focused on incidents at Santa Rita between the summer and fall of 2016, and are not related to Bailey’s investigation.

Bailey’s next court appearance is scheduled at the Rene C. Davidson Courthouse in Oakland on Feb. 15, Department 7, at 9 a.m.