to merge 2 tables on the duplicate update in php

hi i have 2 tables have the same structure i want to update t1 with t2 values
I used this query but it does not work
$ QRY = "INSERT INTO mutashabeha c (
SELECT * FROM mutashabehat t
ON (c.SurahNumber = t.SurahNumber AND c.AyahNumber = t.AyahNumber AND c.SurahNumber2 = t.SurahNumber2 AND c.AyahNumber2 = t.AyahNumber2) UPDATE
SimilarParts = t.SimilarParts,
DifferentParts1 = t.DifferentParts1,
DifferentParts2 = t.DifferentParts2,
Markers = t.Markers,
Comments = t.Comments,
PoeticVerses = t.PoeticVerses
)
";