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 (1, 2, 7, 4) 
ORDER BY 
  g.order, 
  g.parent_id, 
  g.grid_id ASC

Query time 0.00121

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "27.21"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "8.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": "(`db_emaika1`.`c`.`container_id` in (1,2,7,4))",
            "cost_info": {
              "read_cost": "8.81",
              "eval_cost": "0.80",
              "prefix_cost": "9.61",
              "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": [
              "db_emaika1.c.container_id"
            ],
            "rows_examined_per_scan": 2,
            "rows_produced_per_join": 8,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.00",
              "eval_cost": "1.60",
              "prefix_cost": "19.21",
              "data_read_per_join": "6K"
            },
            "used_columns": [
              "grid_id",
              "container_id",
              "parent_id",
              "order",
              "width",
              "offset",
              "user_class",
              "omega",
              "alpha",
              "wrapper",
              "content_align",
              "html_element",
              "clear",
              "status"
            ]
          }
        }
      ]
    }
  }
}

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
1 1 TOP_PANEL 3 top-links-grid ty-top-grid_float Y A 0 1 0 0 0 0 1 LEFT div 0
1 1 TOP_PANEL 11 top-links-grid hidden-phone Y A 0 2 0 0 0 0 0 LEFT div 0
1 1 TOP_PANEL 2 Y A 0 3 0 0 0 1 0 RIGHT div 1
2 1 HEADER 5 top-logo-grid Y A 0 4 0 0 0 0 1 FULL_WIDTH div 0
7 2 CONTENT 16 Y A 0 276 0 0 0 1 1 FULL_WIDTH div 1
4 1 FOOTER 16 footer_wawe Y A 0 280 0 0 0 1 1 FULL_WIDTH div 1
2 1 HEADER 4 cart-content-grid Y A 0 8 6 0 0 1 1 FULL_WIDTH div 1
4 1 FOOTER 11 ty-grid Y A 0 13 12 0 0 0 1 FULL_WIDTH div 0
4 1 FOOTER 5 ty-grid Y A 0 14 12 0 0 1 0 FULL_WIDTH div 1
4 1 FOOTER 4 my-account-grid Y D 0 16 15 0 0 0 1 LEFT div 0
4 1 FOOTER 4 footer-store-grid Y A 0 17 15 0 0 0 0 LEFT div 0
4 1 FOOTER 4 customer-service-grid Y D 0 18 15 0 0 0 0 LEFT div 0
4 1 FOOTER 4 about-grid Y A 0 19 15 0 0 1 0 LEFT div 1
4 1 FOOTER 8 Y A 0 21 20 0 0 0 1 LEFT div 0
4 1 FOOTER 8 Y A 0 22 20 0 0 1 0 RIGHT div 1
7 2 CONTENT 16 Y A 0 24 23 0 0 1 1 FULL_WIDTH div 1
7 2 CONTENT 11 Y A 0 278 24 0 0 0 1 FULL_WIDTH div 0
2 1 HEADER 7 ty-cr-content-grid Y A 0 5 0 1 0 0 0 FULL_WIDTH div 0
4 1 FOOTER 16 ty-footer-grid__full-width footer-stay-connected Y A 0 12 0 1 0 1 1 FULL_WIDTH div 1
7 2 CONTENT 16 Y A 0 23 0 1 0 1 1 FULL_WIDTH div 1
2 1 HEADER 4 Y A 0 6 0 2 0 1 0 RIGHT div 1
4 1 FOOTER 16 ty-footer-grid__full-width ty-footer-menu Y A 0 15 0 2 0 1 1 FULL_WIDTH div 1
7 2 CONTENT 16 Y A 0 26 0 2 0 1 1 FULL_WIDTH div 1
2 1 HEADER 4 search-block-grid Y A 0 7 6 2 0 1 1 FULL_WIDTH div 1
7 2 CONTENT 10 Y A 0 138 23 2 0 0 1 FULL_WIDTH div 0
7 2 CONTENT 5 top-logo-grid Y A 0 279 24 2 0 1 0 FULL_WIDTH div 1
2 1 HEADER 16 top-menu-grid Y A 0 9 0 3 0 1 1 FULL_WIDTH div 1
4 1 FOOTER 16 ty-footer-grid__full-width footer-copyright Y A 0 20 0 3 0 1 1 FULL_WIDTH div 1
7 2 CONTENT 8 Y D 0 27 0 3 0 0 1 FULL_WIDTH div 0
7 2 CONTENT 6 Y A 0 25 23 3 0 1 0 FULL_WIDTH div 1
7 2 CONTENT 8 Y D 0 28 0 4 0 1 0 FULL_WIDTH div 1
7 2 CONTENT 16 Y A 0 29 0 5 0 1 1 FULL_WIDTH div 1