UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'U+oz2ABng0OJLvuzDFOQM46qUDKG7HpMG2gQ6E00YK8=' 
WHERE 
  key_id = '2b49bea2aa50f61275dc4c7d9ed00e70de82b66f444a0cb533dcc091b3e66c2a' 
  AND (
    token = 'U+oz2ABng0OJLvuzDFOQM46qUDKG7HpMG2gQ6E00YK8=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00016