UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'fHH3+7syrzhagEgkj+35qWnbgnzj/sn2OL95dnJmZ/E='
WHERE
key_id = '62a5f6ff85aa1b7d1bd9254389bdd5c339ee2125b2c8d7a75e7f1c330bc52c64'
AND (
token = 'fHH3+7syrzhagEgkj+35qWnbgnzj/sn2OL95dnJmZ/E='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)