fix ambiguous column name error when counting the results
Merge pull request #80 from Kunstmaan/fix_ambiguous_column_name

fix ambiguous column name error when counting the results