foo = QueryNew("id"); bar = QueryExecute( "SELECT COUNT(1) AS cnt FROM foo", [], {dbtype="query"} ); writeDump(bar);