Dear, You had Ulcer disease in past. If you are taking pain killers to get rid of knee pain, you may have begining of ulcer disease: simple swelling to versions in stomach. These can be cause of digestive problems.
Next Steps
Consult Orthopaedic doctor to know the actual reason of knee pain and safe remedy for it