query failed safely
