Barking up the Wrong Tree

Expression

คิดผิด, เข้าใจผิด, ถามผิดคน

If you think these are the solutions to the problem, you are barking up the wrong tree.