A Turkish court on Tuesday reversed a previous ruling to release veteran journalist Ahmet Altan, 69, on appeal after convicting him of aiding a terrorist organization, according to The Independent Turkish service.

The ruling was challenged by a prosecutor immediately after the hearing.

The court then issued a detention warrant for Altan, who was sentenced to 10 years, six months on Nov. 4.

One of Turkey’s most famous writers and journalists, Altan was first arrested after a 2016 failed coup on charges of supporting the coup attempt.

Later, an İstanbul court handed down a life sentence to Altan along with five other defendants, including his brother Mehmet Altan.

Turkey’s Supreme Court of Appeals overturned the life sentence verdict.