I just released my package to properly log php PDO queries to github, check it out.
Usage is fairly simple:
All queries you send to this PDO object will be logged with query, parameters (inserted into the query) and time used by the query.
Happy debugging!