Wrong documents with jdbc

I work with jdbc & lotus. Usually it’s working fine but sometimes i get wrong documents with my sql query. The query is like that:

“SELECT field1,field2 FROM contenttable where contentcode=‘code1’”

Anyone has any idea?