Maternal age and family history are risk factors for ankylosing spondylitis.