MERGE non è supportato da MySQL , L'equivalente è
INSERIRE... SU AGGIORNAMENTO CHIAVE DUPLICATA
Prova questo,
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
ma assicurati email è impostato come Primary Key o Unique .