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 >

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

Any ideas? thanks in advance


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