Need to check for NULL on outer query.