fix invalid query in pg

.first appends order by posts.id limit 1, which causes
error in postgresql.
To retrive first element in Relation without modifying query,
[0] should be used.
Merge branch 'hotfix/fixpost'