Using category id 0 in place of null to indicate no category