Ankylosing spondylitis is an inflammatory, autoimmune disorder that causes joint inflammation, pain, and stiffness. It usually affects the spine but can also affect the hips and joints in the area where the spine connects to the pelvis. This causes deep pain that worsens with inactivity, such as prolonged sitting or bed rest.
Source: Verywell Health