Stargate Atlantis: Brimstone

Stargate Atlantis: Brimstone, originally named Stargate Atlantis: Brimstone and Salt, is the twelfth Stargate Atlantis novel to be published by Fandemonium, and is written by David Niall Wilson and Patricia Lee Macomber.

Publishers summary
The Stargate Atlantis team discover a city on a moon that's about to plunge into its own sun. But the city which looked as if it had been abandoned turns out to be inhabited by descendants of the Ancients who have fallen into decadence and debauchery. Faced with a dissolute society disinterested in their own fate and unable to escape, the team must fight their way free before being plunged into a fiery death.