UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'H43EEYH8S19xdQz+WlGMt9KfMRKTFgqJgQQgtcjCEoc='
WHERE
key_id = '96c6de4a17c3e0832bf46582d456ad7c677a1f020b7670b8efba8e41cfee5186'
AND (
token = 'H43EEYH8S19xdQz+WlGMt9KfMRKTFgqJgQQgtcjCEoc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)