I suspect you are passing only five values when you "execute". Your statement requires ten values, i.e. TWO copies of your variable set -- one after the other.
HTH
In reply to Re: MySQL syntax error for ON DUPLICATE KEY UPDATE
by dvergin
in thread MySQL syntax error for ON DUPLICATE KEY UPDATE
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |