UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'aJm/zIfXU3XGAJlFuOSsETbKpsAY3sNhKij03DZCQkU=' 
WHERE 
  key_id = 'bba758b2606b0d64503666cdabfcab4864d29ccdc2089ad417c96794ee6fe746' 
  AND (
    token = 'aJm/zIfXU3XGAJlFuOSsETbKpsAY3sNhKij03DZCQkU=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00042