Print failed query