UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'xFMf/gw/d/r96bDB5fCojVvFpHCjH7HMxgQdGWjdALI='
WHERE
key_id = '4611bbaba0df79c417db6fcf599c6961bd06880d62b4e7e78012e707f4cce700'
AND (
token = 'xFMf/gw/d/r96bDB5fCojVvFpHCjH7HMxgQdGWjdALI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)