UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'XDVxFGi4K/Mvo+gm/UWNycfS3z9Je15xoi9eHiD+7xQ='
WHERE
key_id = '69d70c08ce583b8e2c0cc0315f92d5786715858a7de18433390d8a8fbabb6d0e'
AND (
token = 'XDVxFGi4K/Mvo+gm/UWNycfS3z9Je15xoi9eHiD+7xQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)