query error print