make query for post visible_to users more efficient