But to my dismay, even though the $previousSubDataCount spits out 2 (which I have 2 records) the foreach($previousSubData as $preData){} loop only prints out 1 record.
If I enable the profiler and run the SQL that the code is executed returns 2 rows. I tried to move the foreach loop into the control just to test what I was getting back like