UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'CmZc4EyogjyQZ5PZgogP4/CsCRXMWs4MtrUmTMQlyiI='
WHERE
key_id = '9facf4049f02330005dad5d68fc0e352ae71c139a49ce0b1d95d9820ea8554f8'
AND (
token = 'CmZc4EyogjyQZ5PZgogP4/CsCRXMWs4MtrUmTMQlyiI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)