Access a table that is in a state of change (via an INSERT, UPDATE, or DELETE statement) gives a mutating error. This is generally during row-level trigger firing during the event. To avoid mutating don't use trigger.