Making sure wp term relationships records are unique

While the code does check for duplicates, the schema itself won’t allow it because the term_relationships table has a PRIMARY KEY of (object_id,term_taxonomy_id).

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)