Update group by posts.id in search method

i used postgresql, and i found the error in search method, when change groubBy to posts.id it's fixed.
Merge pull request #78 from cahsowan/develop

DB Repository groupBy in search method: use posts.id