UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '60KW/QFgXImu2x1ee5o9wRHkoLkG8QGgMWNjoX2cUs4=' 
WHERE 
  key_id = 'bdd2f13feec24c69bbc89902dad41c3f8822e8c3902ffa980cdb86118c30e87f' 
  AND (
    token = '60KW/QFgXImu2x1ee5o9wRHkoLkG8QGgMWNjoX2cUs4=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00042