pull the proper category from the queried object