Update pdo-iterator.php

This method result in Array to String convertion Warning.
Also remove unused $output variable.