For some reason InnoDB produced "duplicate key" errors on tables with varchar primary keys; tweak the query slightly to make the UTF8 InnoDB Pom Pom Girls cheer again.