Merge pull request #3130 from dionysiosarvanitis/fix/pdo_result__list_fields

Missing looping index added.