SELECT 
  * 
FROM 
  cscart_bm_containers as c 
  LEFT JOIN cscart_bm_grids as g ON g.container_id = c.container_id 
WHERE 
  1 
  AND g.container_id IN (6301, 6302, 6307, 6304) 
ORDER BY 
  g.order, 
  g.parent_id, 
  g.grid_id ASC

Query time 0.00159

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "24.41"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "16.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "c",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "container_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 4,
            "rows_produced_per_join": 4,
            "filtered": "100.00",
            "index_condition": "(`s2cart`.`c`.`container_id` in (6301,6302,6307,6304))",
            "cost_info": {
              "read_cost": "2.41",
              "eval_cost": "0.40",
              "prefix_cost": "2.81",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "container_id",
              "location_id",
              "position",
              "width",
              "user_class",
              "linked_to_default",
              "status",
              "company_id"
            ]
          }
        },
        {
          "table": {
            "table_name": "g",
            "access_type": "ref",
            "possible_keys": [
              "container_id"
            ],
            "key": "container_id",
            "used_key_parts": [
              "container_id"
            ],
            "key_length": "3",
            "ref": [
              "s2cart.c.container_id"
            ],
            "rows_examined_per_scan": 4,
            "rows_produced_per_join": 16,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.00",
              "eval_cost": "1.60",
              "prefix_cost": "8.41",
              "data_read_per_join": "26K"
            },
            "used_columns": [
              "grid_id",
              "container_id",
              "parent_id",
              "order",
              "width",
              "offset",
              "user_class",
              "omega",
              "alpha",
              "wrapper",
              "content_align",
              "html_element",
              "clear",
              "status",
              "section_class",
              "section_width",
              "abt__ut2_extended",
              "abt__ut2_padding",
              "is_tabbed",
              "abt__ut2_use_lazy_load",
              "abt__ut2_show_blocks_in_tabs"
            ]
          }
        }
      ]
    }
  }
}

Result

container_id location_id position width user_class linked_to_default status company_id grid_id parent_id order offset omega alpha wrapper content_align html_element clear section_class section_width abt__ut2_extended abt__ut2_padding is_tabbed abt__ut2_use_lazy_load abt__ut2_show_blocks_in_tabs
6301 1576 TOP_PANEL 3 Y A 0 7919 0 0 0 0 1 LEFT div 0 S 0 N N no
6301 1576 TOP_PANEL 13 top-links-grid Y A 0 7920 0 0 0 1 0 RIGHT div 1 S 0 N N no
6302 1576 HEADER 16 top-menu-grid Y A 0 7921 0 0 0 1 1 FULL_WIDTH div 1 S 0 N N no
6304 1576 FOOTER 16 ty-footer-menu b-top Y A 0 7929 0 0 0 1 1 FULL_WIDTH div 1 S E N N no
6304 1576 FOOTER 16 ty-footer-grid__full-width footer-copyright Y A 0 7934 0 0 0 1 1 FULL_WIDTH div 1 S O N N no
6307 1577 CONTENT 16 Y A 0 7937 0 0 0 1 1 FULL_WIDTH div 1 S F ut2-bottom N N no
6307 1577 CONTENT 16 Y A 0 7938 0 0 0 1 1 FULL_WIDTH div 1 S O ut2-bottom N N no
6307 1577 CONTENT 16 banners-grid-resizable Y A 0 7939 0 0 0 1 1 FULL_WIDTH div 1 S O N N no
6307 1577 CONTENT 16 Y A 0 7944 0 0 0 1 1 FULL_WIDTH div 1 S 0 ut2-top N Y no
6307 1577 CONTENT 16 Y A 0 7947 0 0 0 1 1 FULL_WIDTH div 1 S O ut2-bottom N N no
6307 1577 CONTENT 16 banners-grid Y A 0 7948 0 0 0 1 1 FULL_WIDTH div 1 S O ut2-bottom N N no
6307 1577 CONTENT 16 Y A 0 7952 0 0 0 1 1 FULL_WIDTH div 1 S O ut2-bottom N N no
6307 1577 CONTENT 16 fill--color Y A 0 7953 0 0 0 1 1 FULL_WIDTH div 1 S E ut2-top-bottom N N no
6307 1577 CONTENT 16 fill--gray Y A 0 7954 0 0 0 1 1 FULL_WIDTH div 1 S E ut2-top-bottom N N no
6307 1577 CONTENT 16 Y A 0 7955 0 0 0 1 1 FULL_WIDTH div 1 S 0 N N no
6307 1577 CONTENT 16 Y D 0 7956 0 0 0 1 1 FULL_WIDTH div 1 S E ut2-top-bottom N N no
6307 1577 CONTENT 16 Y A 0 7957 0 0 0 1 1 FULL_WIDTH div 1 S O ut2-top-bottom N N no
6307 1577 CONTENT 16 Y A 0 7958 0 0 0 1 1 FULL_WIDTH div 1 S O ut2-bottom N N no
6302 1576 HEADER 4 top-logo Y A 0 7922 7921 0 0 0 1 FULL_WIDTH div 0 S 0 N N no
6302 1576 HEADER 9 top-search Y A 0 7923 7921 0 0 0 0 FULL_WIDTH div 0 S 0 N N no
6302 1576 HEADER 3 top-buttons top-button-cart Y A 0 7924 7921 0 0 1 0 FULL_WIDTH div 1 S 0 N N no
6304 1576 FOOTER 4 my-account-grid Y A 0 7930 7929 0 0 0 1 LEFT div 0 S 0 N N no
6304 1576 FOOTER 4 demo-store-grid Y A 0 7931 7929 0 0 0 0 LEFT div 0 S 0 N N no
6304 1576 FOOTER 4 customer-service-grid Y A 0 7932 7929 0 0 0 0 LEFT div 0 S 0 N N no
6304 1576 FOOTER 4 about-grid Y A 0 7933 7929 0 0 1 0 LEFT div 1 S 0 N N no
6304 1576 FOOTER 8 Y A 0 7935 7934 0 0 0 1 LEFT div 0 S 0 N N no
6304 1576 FOOTER 8 Y A 0 7936 7934 0 0 1 0 RIGHT div 1 S 0 N N no
6307 1577 CONTENT 4 Y A 0 7940 7939 0 0 0 1 FULL_WIDTH div 0 S 0 N N no
6307 1577 CONTENT 4 Y A 0 7941 7939 0 0 0 0 FULL_WIDTH div 0 S 0 N N no
6307 1577 CONTENT 4 Y A 0 7942 7939 0 0 0 0 FULL_WIDTH div 0 S 0 N N no
6307 1577 CONTENT 4 Y A 0 7943 7939 0 0 1 0 FULL_WIDTH div 1 S 0 N N no
6307 1577 CONTENT 16 Y A 0 7945 7944 0 0 1 1 FULL_WIDTH div 1 S 0 N N no
6307 1577 CONTENT 16 Y A 0 7946 7944 0 0 1 1 FULL_WIDTH div 1 S 0 N N with_lazy_load
6307 1577 CONTENT 5 small-banner Y A 0 7949 7948 0 0 0 1 FULL_WIDTH div 0 S 0 N N no
6307 1577 CONTENT 6 big-banner Y A 0 7950 7948 0 0 0 0 FULL_WIDTH div 0 S 0 N N no
6307 1577 CONTENT 5 small-banner Y A 0 7951 7948 0 0 1 0 FULL_WIDTH div 1 S 0 N N no
6307 1577 CONTENT 8 Y A 0 7959 7958 0 0 0 1 FULL_WIDTH div 0 S 0 N N no
6307 1577 CONTENT 8 Y A 0 7960 7958 0 0 1 0 FULL_WIDTH div 1 S 0 N N no
6302 1576 HEADER 16 Y A 0 9751 0 2 0 1 1 FULL_WIDTH div 1 S 0 N N no
6302 1576 HEADER 16 Y A 0 9752 0 4 0 1 1 FULL_WIDTH div 1 S 0 N N no
6302 1576 HEADER 16 Y A 0 9753 0 5 0 1 1 FULL_WIDTH div 0 S 0 N N no