UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'EUs1deyUdeUWsZ/OrfTPHLTBtlLwZgBZ0ba2lh1mZNY='
WHERE
key_id = '81a0e2354d64328571f61bd89e99bb5581f6fa52ab5dc0801a007a1e2e28cc24'
AND (
token = 'EUs1deyUdeUWsZ/OrfTPHLTBtlLwZgBZ0ba2lh1mZNY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)