bug-fix: check if query return column exists