Nah, do it the easy way, from the sql monitor for your database, issue commands kinda sorta like this (backup first, I'm not responsible for your data...)
select distinct * into newtable from oldtable;
alter table oldtable rename to farkedtable;
alter table newtable rename to oldtable;
recreate indexes as needed.
Note that if you have triggers, rules, etc... on that table, you can do it this way:
select distinct into newtable from oldtable;
delete from oldtable;
insert into newtable (select from oldtable);
I'm not sure that works on MySQL, but it does on pgsql.