Failed to load navigation: Failed query: select "categories"."id", "categories"."medusa_id", "categories"."name", "categories"."handle", "categories"."description", "categories"."thumbnail_id", "categories"."parent_category_id", "categories"."is_active", "categories"."sort_order", "categories"."megamenu_show_in_megamenu", "categories"."megamenu_megamenu_layout", "categories"."megamenu_megamenu_hero_image_id", "categories"."megamenu_megamenu_description", "categories"."megamenu_megamenu_cta_text", "categories"."megamenu_promotional_banner_enabled", "categories"."megamenu_promotional_banner_title", "categories"."megamenu_promotional_banner_description", "categories"."megamenu_promotional_banner_cta_text", "categories"."megamenu_promotional_banner_cta_url", "categories"."megamenu_megamenu_columns", "categories"."megamenu_megamenu_style_background_color", "categories"."megamenu_megamenu_style_text_color", "categories"."megamenu_megamenu_style_accent_color", "categories"."megamenu_megamenu_style_border_color", "categories"."megamenu_megamenu_style_hover_color", "categories"."megamenu_megamenu_style_custom_css", "categories"."megamenu_megamenu_analytics_track_impressions", "categories"."megamenu_megamenu_analytics_track_clicks", "categories"."megamenu_megamenu_analytics_custom_tracking_label", "categories"."megamenu_megamenu_analytics_conversion_goal", "categories"."megamenu_megamenu_advanced_priority", "categories"."megamenu_megamenu_advanced_show_badge", "categories"."megamenu_megamenu_advanced_badge_text", "categories"."megamenu_megamenu_advanced_badge_color", "categories"."subcategory_config_show_in_parent_megamenu", "categories"."subcategory_config_is_featured_subcategory", "categories"."subcategory_config_subcategory_icon", "categories"."subcategory_config_subcategory_badge", "categories"."subcategory_config_subcategory_badge_color", "categories"."subcategory_config_subcategory_priority", "categories"."subcategory_config_subcategory_description", "categories"."subcategory_config_subcategory_image_id", "categories"."subcategory_config_subcategory_cta_text", "categories"."seo_meta_title", "categories"."seo_meta_description", "categories"."seo_meta_keywords", "categories"."meta_title", "categories"."meta_description", "categories"."meta_image_id", "categories"."updated_at", "categories"."created_at", "categories_megamenu_featured_brands_brands"."data" as "megamenu_featured_brands_brands", "categories_megamenu_megamenu_advanced_custom_attributes"."data" as "megamenu_megamenu_advanced_custom_attributes", "categories__rels"."data" as "_rels" from "categories" "categories" left join lateral (select coalesce(json_agg(json_build_array("categories_megamenu_featured_brands_brands"."_order", "categories_megamenu_featured_brands_brands"."id", "categories_megamenu_featured_brands_brands"."name", "categories_megamenu_featured_brands_brands"."slug", "categories_megamenu_featured_brands_brands"."logo_id", "categories_megamenu_featured_brands_brands"."description") order by "categories_megamenu_featured_brands_brands"."_order" asc), '[]'::json) as "data" from (select * from "categories_megamenu_featured_brands_brands" "categories_megamenu_featured_brands_brands" where "categories_megamenu_featured_brands_brands"."_parent_id" = "categories"."id" order by "categories_megamenu_featured_brands_brands"."_order" asc) "categories_megamenu_featured_brands_brands") "categories_megamenu_featured_brands_brands" on true left join lateral (select coalesce(json_agg(json_build_array("categories_megamenu_megamenu_advanced_custom_attributes"."_order", "categories_megamenu_megamenu_advanced_custom_attributes"."id", "categories_megamenu_megamenu_advanced_custom_attributes"."key", "categories_megamenu_megamenu_advanced_custom_attributes"."value") order by "categories_megamenu_megamenu_advanced_custom_attributes"."_order" asc), '[]'::json) as "data" from (select * from "categories_megamenu_megamenu_advanced_custom_attributes" "categories_megamenu_megamenu_advanced_custom_attributes" where "categories_megamenu_megamenu_advanced_custom_attributes"."_parent_id" = "categories"."id" order by "categories_megamenu_megamenu_advanced_custom_attributes"."_order" asc) "categories_megamenu_megamenu_advanced_custom_attributes") "categories_megamenu_megamenu_advanced_custom_attributes" on true left join lateral (select coalesce(json_agg(json_build_array("categories__rels"."order", "categories__rels"."path", "categories__rels"."categories_id", "categories__rels"."products_id") order by "categories__rels"."order" asc), '[]'::json) as "data" from (select * from "categories_rels" "categories__rels" where "categories__rels"."parent_id" = "categories"."id" order by "categories__rels"."order" asc) "categories__rels") "categories__rels" on true where ("categories"."is_active" = $1 and "categories"."parent_category_id" is null and "categories"."medusa_id" is not null) order by "categories"."sort_order" asc, "categories"."created_at" desc limit $2
params: true,20