MERGE er ikke understøttet af MySQL , svarende til det er
INDSÆT ... PÅ DUBLIKAT NØGLOPDATERING
Prøv dette,
INSERT INTO tableName (email, secret, passwd, ts, newAcct)
VALUES ($1,$2,$3,$4,TRUE)
ON DUPLICATE KEY UPDATE newAcct=TRUE, existingUser=NULL, secret=$2, ts=$4
men sørg for at email er indstillet som Primary Key eller Unique .