UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'U/DGxo5eSuvb03MwkRoV2pFqJqU5o6VXGY7eR0t+n1I='
WHERE
key_id = '55eb198a40c066b16c2b004e8ffc1508e26a7dab955df99bd8912cb28e44cc43'
AND (
token = 'U/DGxo5eSuvb03MwkRoV2pFqJqU5o6VXGY7eR0t+n1I='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)