It obviously isn't running that query because coun(*) always returns one row.
Do you have SQL logging enabled in AOLserver? If so, could you post not only the error message but the actual query it thinks it is running?
Is the query inline or in a query file? A new query, or did you overwrite an existing query? Remember that queries in a query file override inline queries.
Thank you very much!!!!
I've solve the problem, stupid I was. I was focus only in one query and the one that was making troueble was a simple one defined at the end. Thanks for your time. Hope I could solve the other one. I'll post it (ONES)