UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'bx12a4wZn9cF5gx6LeRrWaFaF9IDIp0S9z2Up/d7ESA=' 
WHERE 
  key_id = '88fe42599abe129e4aba1992ae3b3c63453430fa9e6b9e58f3948eed01c8e096' 
  AND (
    token = 'bx12a4wZn9cF5gx6LeRrWaFaF9IDIp0S9z2Up/d7ESA=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00018