in mistake for something

in miˈstake for something

thinking that something is something else: Children may eat pills in mistake for sweets.
See also: mistake, something