[BUGFIX] Category API does not consider multiple tables