The first loop iteration works fine and my table looks good but when it loops through again, the data from my first table column is appearing all the way to the right. When I view the page source it seems that some extra cells are being added, pushing this cell over. Here's part of the page source: