Need to set the vars to null before the select.  If the select
finds no data, they get left as null rather than being set to null