Originally posted by slimdave
Try ...

Code:
... and
      rownum > 1 )
...
That should probably read:
Code:
... and
      rownum >= 1 )
...