/bɑːk ʌp ðə ˈɹɒŋ tɹiː/
pursue the wrong course of action
“The detective barked up the wrong tree entirely.”