UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '75+mra3WnoTZeP+fRsWmTBA3ju5rKYOPYrHnsHMKntc='
WHERE
key_id = '950f38bf31439dab2302277bb41efd7aaf26d8f0a5bdb6aa4a10e215449309b2'
AND (
token = '75+mra3WnoTZeP+fRsWmTBA3ju5rKYOPYrHnsHMKntc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)