Please remove grammar flaws from the given sentence
When I arrived at my clinic which I work, my boss told me that I had mistake yesterday.
When I arrived at my clinic, where I work, my boss told me that I had made a mistake yesterday.