UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'GokYxEX/xd9A6tUCWmNVCogiavGIclYB8mbgPXcplMY='
WHERE
key_id = '104a34e03b1ed7293b70ded2a2a4875941b6c17b8fce68f30f1c1ab013dcd90f'
AND (
token = 'GokYxEX/xd9A6tUCWmNVCogiavGIclYB8mbgPXcplMY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)