UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'ufstnSePeEF7e4vYD+KyNRzq8n9qlNKquqE+SwZZQcs='
WHERE
key_id = '68e742bef036ed9c5a278c0bf0264402b48f70d6d1ebbbb5bde4449b4a25b810'
AND (
token = 'ufstnSePeEF7e4vYD+KyNRzq8n9qlNKquqE+SwZZQcs='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)