fix has many queries
fix case where id array > 1
Merge pull request #41 from Battlefy/fix/hasmany-query

fix has many queries