Having bad knees shouldn’t keep you from your yoga mat.  If you experience or have knee problems, chose a slow, alignment-based style of yoga such as Iyengar