Ankylosing spondylitis may affect more than the spine. The disease may inflame joints in the pelvis, shoulders, hips and knees, and between the spine and ribs.