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 (393, 394, 407, 396) 
ORDER BY 
  g.order, 
  g.parent_id, 
  g.grid_id ASC

Query time 0.00058

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": "(`test_uchur_k`.`c`.`container_id` in (393,394,407,396))",
            "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": [
              "test_uchur_k.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": "14K"
            },
            "used_columns": [
              "grid_id",
              "container_id",
              "parent_id",
              "order",
              "width",
              "offset",
              "user_class",
              "omega",
              "alpha",
              "wrapper",
              "content_align",
              "html_element",
              "clear",
              "status",
              "extended",
              "ab__show_in_tabs",
              "ab__use_ajax",
              "abt__ut2_extended",
              "abt__ut2_padding",
              "abt__ut2_show_blocks_in_tabs",
              "abt__ut2_use_lazy_load"
            ]
          }
        }
      ]
    }
  }
}

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 extended ab__show_in_tabs ab__use_ajax abt__ut2_extended abt__ut2_padding abt__ut2_show_blocks_in_tabs abt__ut2_use_lazy_load
393 99 TOP_PANEL 16 Y A 0 568 0 0 0 1 1 LEFT div 1 0 N N E no N
394 99 HEADER 16 top-menu-grid Y A 0 571 0 0 0 1 1 FULL_WIDTH div 1 0 N N 0 no N
407 102 CONTENT 16 Y A 0 636 0 0 0 1 1 FULL_WIDTH div 1 0 N N F no N
396 99 FOOTER 16 Y A 0 1049 0 0 0 1 1 FULL_WIDTH div 1 0 N N O ut2-top-bottom no N
394 99 HEADER 2 top-logo Y A 0 572 571 0 0 0 1 FULL_WIDTH div 0 0 N N 0 no N
396 99 FOOTER 4 my-account-grid Y A 0 578 577 0 0 0 1 LEFT div 0 0 N N 0 no N
396 99 FOOTER 4 demo-store-grid Y A 0 579 577 0 0 0 0 LEFT div 0 0 N N 0 no N
396 99 FOOTER 4 customer-service-grid Y A 0 580 577 0 0 0 0 LEFT div 0 0 N N 0 no N
396 99 FOOTER 4 about-grid Y A 0 581 577 0 0 1 0 LEFT div 1 0 N N 0 no N
396 99 FOOTER 8 Y A 0 583 582 0 0 0 1 LEFT div 0 0 N N 0 no N
396 99 FOOTER 8 Y A 0 584 582 0 0 1 0 RIGHT div 1 0 N N 0 no N
396 99 FOOTER 16 Y A 0 1050 0 1 0 1 1 FULL_WIDTH div 1 0 N N 0 no N
394 99 HEADER 8 top-search hidden-phone Y A 0 573 571 1 0 0 0 FULL_WIDTH div 0 0 N N 0 no N
396 99 FOOTER 16 ty-footer-menu b-top Y D 0 577 0 2 0 1 1 FULL_WIDTH div 1 0 N N E no N
407 102 CONTENT 16 ut2__subcategories mrg_bottom_40 Y A 0 1977 0 2 0 1 1 FULL_WIDTH div 1 0 N N O no N
394 99 HEADER 4 top-buttons top-button-cart hidden-phone Y A 0 1048 571 2 0 0 0 FULL_WIDTH div 0 0 N N 0 no N
396 99 FOOTER 16 Y A 0 2032 0 3 0 1 1 FULL_WIDTH div 1 0 N N O ut2-top-bottom no N
394 99 HEADER 2 hidden-desktop top-catalog-fly-menu hidden-tablet Y A 0 574 571 3 0 1 0 FULL_WIDTH div 1 0 N N 0 no N
396 99 FOOTER 16 ty-footer-grid__full-width footer-copyright Y A 0 582 0 4 0 1 1 FULL_WIDTH div 1 0 N N O no N
407 102 CONTENT 16 Y D 0 2088 0 4 0 1 1 FULL_WIDTH div 1 0 N N O ut2-bottom no N
407 102 CONTENT 9 main-content-grid Y A 0 637 0 6 0 0 1 FULL_WIDTH div 0 0 N N O no N
407 102 CONTENT 7 side-grid Y A 0 1978 0 7 0 1 0 FULL_WIDTH div 1 0 N N 0 ut2-bottom no N
407 102 CONTENT 16 b-top Y A 0 642 0 9 0 1 1 FULL_WIDTH div 1 0 N N O ut2-top-bottom no N