UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'ST+rKtm6wz/z9qirFnUC/aFy6YlOfWhSR56Y3QwBLwQ='
WHERE
key_id = 'c6fa5965c7ef5428fccd7e42b81dbf3b3fe89f54109174379213105ba0774a7f'
AND (
token = 'ST+rKtm6wz/z9qirFnUC/aFy6YlOfWhSR56Y3QwBLwQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)