UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'AtCSWO7CHVDPHbfDXLCT3reES3/u5l9hi049ToqxfUw='
WHERE
key_id = '94055b6550f0932016ed7388c36ff75ff761ea12ca88592101c26a55efd1490e'
AND (
token = 'AtCSWO7CHVDPHbfDXLCT3reES3/u5l9hi049ToqxfUw='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)