It means that there is a row in table, which has "1" value in first key column.
You should first check what is this key column name - just do 'show create table', and see line like 'PRIMARY KEY ....'.
And then you can review your query, and check, why you are inserting data with duplicate key.
Comment