UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'VQUXMn7WHekQ2bLvA5Zo9YQULyx53jyi+aVg2uLoM48='
WHERE
key_id = '447e993da05b8834a9c76618538d3e291a38085409e006e270cf3be59ebe5691'
AND (
token = 'VQUXMn7WHekQ2bLvA5Zo9YQULyx53jyi+aVg2uLoM48='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)