UPDATE
cscart_multi_declock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'lS2IsQhWxvyh57qV/L2GxTBA51lGOjf73l9BRr0AwwQ='
WHERE
key_id = 'a0b127fccf49d706ef5885152c68e06fd421f2a6d8379a1135fdd6bdec72b6fa'
AND (
token = 'lS2IsQhWxvyh57qV/L2GxTBA51lGOjf73l9BRr0AwwQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)