I just released my package to properly log php PDO queries to github, check it out.

Usage is fairly simple:

<?php
require_once 'loggedPDO/PDO.php';
$logger = Log::factory('console', '', 'PDO');
$pdo = new \LoggedPDO\PDO($connstr,DB_USERNAME,DB_PASSWORD,null,$logger);

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!