UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'k/FqkhWIQS8a7qsRGHXFoBnD/0uzuJX4wDpYYimqRe4='
WHERE
key_id = '3bcb9b9d72d85dc96e6aaa3dd63641fca8b05a79cb05d3f253893a4b182b6107'
AND (
token = 'k/FqkhWIQS8a7qsRGHXFoBnD/0uzuJX4wDpYYimqRe4='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)