bark up the wrong tree
Waste one's efforts by pursuing the wrong thing or path, as in If you think I can come up with more money, you're barking up the wrong tree. This term comes from the nocturnal pursuit of raccoon-hunting with the aid of dogs. Occasionally a raccoon fools the dogs, which crowd around a tree, barking loudly, not realizing their quarry has taken a different route. [Early 1800s]
Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.