UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'wlOqV/mk01tOvOOk3YWUp7yKO8Y/afFuUKY++Vk3O6g='
WHERE
key_id = '753415ee998c7b74dca4824da983e3bc494a766931c8f11991b9db4371bff117'
AND (
token = 'wlOqV/mk01tOvOOk3YWUp7yKO8Y/afFuUKY++Vk3O6g='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)