UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Taz5Zcc1kumcnsvnuEa+pbsRHIVEruw6VZWsTuTkVpc='
WHERE
key_id = '62d5c59dd60f5572ceb731d7b1402a3a70b1c45f62de851492605c2e322bcab9'
AND (
token = 'Taz5Zcc1kumcnsvnuEa+pbsRHIVEruw6VZWsTuTkVpc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)