error: Invalid statement handle

database: datenbanken\gartenhof-kuesters2.de\pictures.GDB
table: category A
sqlstring: Select count(DISTINCT A.id) from category A Where (A.id=181)