bark up the wrong tree

verb
Graduate
1

To take the wrong approach to a situation; to follow a false lead; to attempt to solve a problem using mistaken assumptions about its true nature.