bark up the wrong tree : Popular Idioms in English

bark up the wrong tree

to assume something or someone incorrectly.

The police officer had the wrong suspect; he was barking up the wrong tree.