Append query to PDOException message