UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'RcO+l1bpT/Nd6QI8o+o6tnP6dOENX4A2CM5b/8EVN/E='
WHERE
key_id = 'b4ab1444836d574512be53523d0a326fe6f94b236aa7527054edd019b830b8ed'
AND (
token = 'RcO+l1bpT/Nd6QI8o+o6tnP6dOENX4A2CM5b/8EVN/E='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)