Missing looping index added. Without index empty rows returned for csv column headers.
Merge pull request #3130 from dionysiosarvanitis/fix/pdo_result__list_fields

Missing looping index added.