I have a query that I'm executing with PDO that has bind variables. If I echo out the statement's queryString value and substitute the bind variables myself, and execute the query, I get returned rows. I was hoping someone could give me some pointers on debugging this issue.
I'm awarding VMai's answer, because he gave me some good debugging tips. I discovered that in my case the problem was due to using bindParam() in a foreach loop. Creating a code snippet where the only difference was the foreach loop is what got me researching in that direction. I didn't need the functionality that bindParam affords, so switching to bindValue fixed the bug.