Added index to AttributeTypeCategories.akCategoryID for join to AttributeKeyCategories table and for where clause