Oh, I see now, if count is zero you don't do the query at all (wise :) )

See the line comment below