So sorry, I was busy specifying the field names and forgot to include the table name in the query. Here is the correct query:
select perpost,docdate,docbal,curydocbal,stmtbal,stmtdate,opendoc,perclosed from ardoc where custid = 'xxxxx' and refnbr = 'nnnnnn'