correct variable name
if the query works and there are a number of rows as a result of the query