Pgm nhiRegStats: Sql Error occurred during operation select r.sample_time, r.element_id