Did he tell you what was wrong with your knees or that you just shouldn't squat?
I knew there are a few conditions that actually stop you from squatting safely, but generally, proper squat for is...