printing query to see if it fails