UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'FnR5E8jtjVajy3HsbtM3aCdZ3oEuPRMI/6Ls2wzdJjQ='
WHERE
key_id = '70becf25dab0cb3e23590d957fc59aaccc1552019e34bbcc2afd709dd7862e6c'
AND (
token = 'FnR5E8jtjVajy3HsbtM3aCdZ3oEuPRMI/6Ls2wzdJjQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)