13.01.2015, 23:03
This doesn't seem like the place to use ON DUPLICATE KEY. It seems like 'id' should be the primary key (and thus a unique value). The primary key's only purpose is to uniquely identify the row in the table. It should have no other purpose or meaning. The primary key should never be changed.