Do you recall any specific trauma to your knee, or did this just come on spontaneously? Does it hurt all the time or just with certain activities? Have you tried ice, heat, and/or anti-inflammatories? If you have not, you can try that first.
If it's a constant pain, then you should consider seeing an orthopaedic surgeon for a physical exam and x-rays.