TQuery 'Division by zero' error msg

Hi all,
  I run a TQuery with a simple request and the 1st time i get all ok
but the 2nd and more times i get a 'Division by zero' error :(
The SQL sentence is for example 'SELECT * FROM DATABASE WHERE COUNTER >
10000'

I used SQL Explorer and i get the same when i run 2nd time and more...
When i run for example 'SELECT * FROM DATABASE' then i get all the
records... but everything else i get an exception.

Im using BDE 5.1.0.4

Any ideas? thanks in advance

JRO

Sent via Deja.com http://www.deja.com/
Before you buy.