You have a table with duplicate rows - somehow, a unique index was not created, and the error added duplicate records to your table.
You must modify the table by adding a UNIQUE constraint.
You can use this query as follows:
DELETE from table1 USING table1, table1 as vtable WHERE (NOT table1.ID>vtable.ID) AND (table1.logEntry=vtable.logEntry)
You must run this query to ensure that the table can no longer repeat entries:
ALTER TABLE table ADD CONSTRAINT table_unique UNIQUE (field1,field2);
but you can do it if the table is empty.
or if entries exist, try adding IGNORE
ALTER IGNORE TABLE table ADD CONSTRAINT table_unique UNIQUE (field1,field2);
NOTE. If you insert data using the server side of the script (it seems you are using php as tagged), use also checking for the existence of an existence record in the table.
source share