Update pdo-iterator.php

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