Unfortunately knees can be bothered by a lot of things, including but not limited to saddle height. If you are overly stretched out on the bike (reaching too far) it can aggravate your hamstring too. Sounds like you might need a comprehensive bike fit to get all of the variables checked out.