UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '4Uidxc1S9VIQ2isRmb65lmdWdbuQuw/pysAuIWAT72c='
WHERE
key_id = '2b9ebf306be18f0d3ed7b0d11c188388190be0d40037567fac8ceace587ed611'
AND (
token = '4Uidxc1S9VIQ2isRmb65lmdWdbuQuw/pysAuIWAT72c='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)