Added category support to related posts query.