Removed free_result call on num_rows()

free_result() should not be called with running num_rows() since you will want to return the query after that if there are records.

Resolves issue #593