Intravenous pamidronate has proven to be effective in patients with ankylosing spondylitis who are refractory to nonsteroidal antiinflammatory drugs , and in painful bone diseases in general , such as Paget 's disease , fibrous dysplasia or vertebral fractures .