Anatomy

A 27 year old male presents with low backache that occurs early in the morning assosciated with stiffness, and persists for more than 30 minutes.On examination his chest expansion is also restricted. The most probable diagnosis is