Undefined Values In Manually-Built Query Are NULL