UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'dbAH/m+7nov9xu/vCfAwGW4/JwhU4lIFE+gS3aqoc5A='
WHERE
key_id = '71268f0ad7c4bd6532e6d0d30a41a77c394e6ab081a426238a3daad7039bc4fe'
AND (
token = 'dbAH/m+7nov9xu/vCfAwGW4/JwhU4lIFE+gS3aqoc5A='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)