I had the snippet above the SQL so the row had no value.
And just one question. You mention:
When using associative arrays, you either need to leave off the quotes around the key...
What do you mean when you say key? What are you referring to?
I keep hearing this time and time again but not sure what it is even though I'm probably using it all the time.