I think you are looking at the following bug:
It is fixed in trunk but it looks like it has not been merged back into the CP branch, I'll try to do that later today.
Thanks for letting me know that this is a known bug and that this bug has already been fixed. After you merge this fix back into the CP branch (sometime later today as you stated), can you please let me know so we can grab it.
Thanks very much.
Has you had a chance to merge the fix for mysql insert statement to CP branch?
I've moved over the changes, let me know if you see any problems.