UPDATE
cscart_multi_declock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'hha/UhKZUp3LthR+3VrLBNVQU5+BMN+DZJnRj+G4qog='
WHERE
key_id = '9b7f9e20df10a1ba891869ad2b3bdc8d3fd0923e7fcc6996708b4b80daf9ebdb'
AND (
token = 'hha/UhKZUp3LthR+3VrLBNVQU5+BMN+DZJnRj+G4qog='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)