UPDATE
cscart_multi_declock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'eMZp58RLGw71UYjhyoQTL6cNh7bpGr9yBCrOtthbcZc='
WHERE
key_id = 'c7ccef2bd827b3f0cd8056db0c6d065d9a18d9833ad175b4cc3f1a201b055631'
AND (
token = 'eMZp58RLGw71UYjhyoQTL6cNh7bpGr9yBCrOtthbcZc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)