i don't understand your query function crow?
The way Cr0w said is very similar to what I use except my query function is a little more advanced since it does error logging, replaces special values in the query string and can return the query result. But the basic idea of it is so you would call
$myquery = query("SELECT * FROM
table_name WHERE
field='
value' LIMIT 1");
Which would then use the query() function to increase the # of queries used as well as running the actual query.