Sorry about not being specific about the db function/structure.
We're using straight mysqli, with a few custom functions.
The functions are working fine in other areas of the script, but it's just prior to cleanup where this lack of anything is occurring, that is, no error is found.
Christian, as for numbers and quotes, in this case ,the db is a varchar field, with a mix of numbers and characters, so quotes is needed (it was a merge of two systems some time back)
Also, the quote made here is not perfect, the where clause, and variables is properly quoted.
I've moved parts of this to the opening variable creation, and it is now working, it's now only the actual reward for a successfully played game that is not working.
Again, this call comes near the end of the process, and the sql is good, so I once again am wondering if it's a wake up call that is needed.
In any case, I'll report back here in a bit.
Ray