Getting data from associative array with .next()

In reply to boryah:

It would really help if you could show a complete example, especially the code that generates the error.