UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'WwQZvsse+ejWGqvZcne12Qg2YBg69bNWyB//FsdnOSQ=' 
WHERE 
  key_id = 'dd8d758844c5277133db5dcd676f386de6258aae2306d943bcfa427aad644b44' 
  AND (
    token = 'WwQZvsse+ejWGqvZcne12Qg2YBg69bNWyB//FsdnOSQ=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00029