Add method to select posts by user id