UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'IlNoTAc7rtOSaNCwxLGG+heMgK2Ge7Q1ZFEBdH3AbvM='
WHERE
key_id = '873f8e8e9d35145b84527ef6eae0e477837d06a61d433db24fc98a36281d72c3'
AND (
token = 'IlNoTAc7rtOSaNCwxLGG+heMgK2Ge7Q1ZFEBdH3AbvM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)