HLA B-27 is a blood test most commonly positive in a condition called Ankylosing spondylitis. Its an autoimmune disease with gradual eroding of the joints of body, particularly those of the spine and hips. There is an inflammation and stiffness of these joints leading to pain and restricted movement. You need not just anti-inflammatory medications, but also some disease modifying medicines. But you need to take these Medicines under the supervision of a Rheumatologist. Some physical activity like swimming can help reduce the stiffness and preserve movement.
Next Steps
Consult a Rheumatologist.