Acute knee pain

Patient: Hello! I have been having very acute knee pain in both of my knees for the past few months, no swelling or anything. I went to the doctor and they did X-rays and said that the knee joint itself looked fine and did not think I tore anything.He told me to take aleve and do some knee exercises.Right about the time my knees began hurting I started doing squats. I did them about 4 or 5 times and have not done them since. Do you think this is what caused my knees to begin hurting?Thanks!