Enable ASSERT() for *NIX debug builds

refs #7634
Fix incorrect IDO queries

fixes #7634