Rats. columnCount() was causing the problem. It was reporting 2, changed to 3 and it's good. Thanks.