UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'hLUaojPs5OLlS0N+c01eInup7GUt/jmGbQd3CAiDxd4='
WHERE
key_id = '44481bd3f80d07df822b45c6fa4db43bf4bd1c2f6d758d2436846d3e36a7f974'
AND (
token = 'hLUaojPs5OLlS0N+c01eInup7GUt/jmGbQd3CAiDxd4='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)