Use standard if for failing queries