Added parent_id selection for categories