UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'nva1kJUHCH48Fxcmu05VDFC4qeLfF+69Yvmls/Cl7lE='
WHERE
key_id = '574ec8ddefae2c443c4036e9d93468e9fad8c7929896bcae6ecdfa3a489df892'
AND (
token = 'nva1kJUHCH48Fxcmu05VDFC4qeLfF+69Yvmls/Cl7lE='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)