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 (77, 78, 87, 80) 
ORDER BY 
  g.order, 
  g.parent_id, 
  g.grid_id ASC

Query time 0.00064

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.01"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "12.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": "(`betaatif_store`.`c`.`container_id` in (77,78,87,80))",
            "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": [
              "betaatif_store.c.container_id"
            ],
            "rows_examined_per_scan": 3,
            "rows_produced_per_join": 12,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "3.00",
              "eval_cost": "1.20",
              "prefix_cost": "7.01",
              "data_read_per_join": "10K"
            },
            "used_columns": [
              "grid_id",
              "container_id",
              "parent_id",
              "order",
              "width",
              "offset",
              "user_class",
              "omega",
              "alpha",
              "wrapper",
              "content_align",
              "html_element",
              "clear",
              "status",
              "abt__ut2_extended",
              "abt__ut2_padding",
              "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 abt__ut2_extended abt__ut2_padding abt__ut2_use_lazy_load abt__ut2_show_blocks_in_tabs
77 20 TOP_PANEL 4 top-links-grid Y A 0 96 0 0 0 0 1 LEFT div 0 0 N no
77 20 TOP_PANEL 10 top-links-grid Y A 0 97 0 0 0 0 0 RIGHT div 0 0 N no
77 20 TOP_PANEL 2 top-links-grid Y A 0 98 0 0 0 1 0 RIGHT div 1 0 N no
78 20 HEADER 4 top-logo-grid Y A 0 99 0 0 0 0 1 FULL_WIDTH div 0 0 N no
78 20 HEADER 5 search-block-grid Y A 0 100 0 0 0 0 0 FULL_WIDTH div 0 0 N no
78 20 HEADER 4 ty-cr-content-grid Y A 0 101 0 0 0 0 0 FULL_WIDTH div 0 0 N no
78 20 HEADER 3 cart-content-grid Y A 0 102 0 0 0 1 0 RIGHT div 1 0 N no
78 20 HEADER 16 top-menu-grid Y A 0 103 0 0 0 1 1 FULL_WIDTH div 1 0 N no
80 20 FOOTER 16 ty-footer-grid__full-width footer-stay-connected Y A 0 106 0 0 0 1 1 FULL_WIDTH div 1 0 N no
80 20 FOOTER 16 ty-footer-grid__full-width ty-footer-menu Y A 0 109 0 0 0 1 1 FULL_WIDTH div 1 0 N no
80 20 FOOTER 16 ty-footer-grid__full-width footer-copyright Y A 0 114 0 0 0 1 1 FULL_WIDTH div 1 0 N no
87 22 CONTENT 16 breadcrumbs-grid Y A 0 127 0 0 0 1 1 FULL_WIDTH div 1 0 N no
87 22 CONTENT 16 main-content-grid Y A 0 128 0 0 0 1 1 FULL_WIDTH div 1 0 N no
80 20 FOOTER 8 Y A 0 107 106 0 0 0 1 LEFT div 0 0 N no
80 20 FOOTER 8 Y A 0 108 106 0 0 1 0 RIGHT div 1 0 N no
80 20 FOOTER 4 my-account-grid Y A 0 110 109 0 0 0 1 FULL_WIDTH div 0 0 N no
80 20 FOOTER 4 demo-store-grid Y A 0 111 109 0 0 0 0 LEFT div 0 0 N no
80 20 FOOTER 4 customer-service-grid Y A 0 112 109 0 0 0 0 LEFT div 0 0 N no
80 20 FOOTER 4 about-grid Y A 0 113 109 0 0 1 0 LEFT div 1 0 N no
80 20 FOOTER 8 Y A 0 115 114 0 0 0 1 LEFT div 0 0 N no
80 20 FOOTER 8 Y A 0 116 114 0 0 1 0 RIGHT div 1 0 N no