Treatment of ankylosing spondylitis