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 (224329, 224330, 224339, 224332) 
ORDER BY 
  g.order, 
  g.parent_id, 
  g.grid_id ASC

Query time 0.00257

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "47.41"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "19.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",
            "cost_info": {
              "read_cost": "4.81",
              "eval_cost": "0.80",
              "prefix_cost": "5.61",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "container_id",
              "location_id",
              "position",
              "width",
              "user_class",
              "linked_to_default",
              "status",
              "company_id"
            ],
            "attached_condition": "(`webmarco`.`c`.`container_id` in (224329,224330,224339,224332))"
          }
        },
        {
          "table": {
            "table_name": "g",
            "access_type": "ref",
            "possible_keys": [
              "container_id"
            ],
            "key": "container_id",
            "used_key_parts": [
              "container_id"
            ],
            "key_length": "3",
            "ref": [
              "webmarco.c.container_id"
            ],
            "rows_examined_per_scan": 4,
            "rows_produced_per_join": 18,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "19.00",
              "eval_cost": "3.80",
              "prefix_cost": "28.41",
              "data_read_per_join": "31K"
            },
            "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_show_in_tabs",
              "abt__ut2_use_ajax",
              "et_grid",
              "et_grid_bkg"
            ]
          }
        }
      ]
    }
  }
}

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_show_in_tabs abt__ut2_use_ajax et_grid et_grid_bkg
224329 56074 TOP_PANEL 16 hidden-phone hidden-tablet Y A 0 447821 0 0 0 1 1 FULL_WIDTH div 1 0 N N N
224339 56076 CONTENT 16 Y A 0 447960 0 0 0 1 1 FULL_WIDTH div 1 0 N N Y #ffffff
224329 56074 TOP_PANEL 12 top-links-grid Y A 0 447822 447821 0 0 0 1 LEFT div 0 0 N N N
224329 56074 TOP_PANEL 4 top-links-grid et-header-right Y A 0 447823 447821 0 0 1 0 RIGHT div 1 0 N N N
224329 56074 TOP_PANEL 4 et-flex-right Y D 0 447827 447824 0 0 0 1 FULL_WIDTH div 0 0 N N N
224330 56074 HEADER 8 Y A 0 447829 447828 0 0 0 1 FULL_WIDTH div 0 0 N N N
224330 56074 HEADER 8 Y A 0 447830 447828 0 0 1 0 FULL_WIDTH div 1 0 N N N
224330 56074 HEADER 16 et-sticky-header-mobile et-sticky-content Y A 0 447832 447831 0 0 1 1 FULL_WIDTH div 1 0 N N N
224330 56074 HEADER 2 et-phone-marketplace-menu Y A 0 447833 447832 0 0 0 1 blocks/grid_wrappers/et_marketplace_menu.tpl FULL_WIDTH div 0 0 N N N
224330 56074 HEADER 14 et-phone-search Y A 0 447834 447832 0 0 1 0 FULL_WIDTH div 1 0 N N N
224330 56074 HEADER 16 et-sticky-content Y A 0 447836 447835 0 0 1 1 FULL_WIDTH div 1 0 N N N #ffffff
224330 56074 HEADER 4 top-logo-grid Y A 0 447837 447836 0 0 0 1 FULL_WIDTH div 0 0 N N N #ffffff
224330 56074 HEADER 4 top-logo-grid Y A 0 447841 447840 0 0 0 1 FULL_WIDTH div 0 0 N N Y #ffffff
224330 56074 HEADER 16 et-main-menu-wrapper Y A 0 447845 447844 0 0 1 1 FULL_WIDTH div 1 0 N N N
224332 56074 FOOTER 16 Y A 0 447849 447848 0 0 1 1 FULL_WIDTH div 1 0 N N N #ffffff
224332 56074 FOOTER 16 space-top Y A 0 447853 447848 0 0 1 1 FULL_WIDTH div 1 0 N N N #ffffff
224332 56074 FOOTER 1 Y A 0 447864 447849 0 0 0 1 FULL_WIDTH div 0 0 N N N
224332 56074 FOOTER 16 Y A 0 447854 447853 0 0 1 1 FULL_WIDTH div 1 0 N N N #ffffff
224332 56074 FOOTER 12 Y A 0 447857 447856 0 0 0 1 LEFT div 0 0 N N Y
224339 56076 CONTENT 16 Y A 0 447962 447961 0 0 1 1 FULL_WIDTH div 1 0 N N N
224339 56076 CONTENT 16 Y A 0 447964 0 1 0 1 1 FULL_WIDTH div 1 0 N N Y
224329 56074 TOP_PANEL 8 et-flex-center Y A 0 447826 447824 1 0 0 0 FULL_WIDTH div 0 0 N N Y
224330 56074 HEADER 9 search-block-grid Y A 0 447838 447836 1 0 0 0 FULL_WIDTH div 0 0 N N N #ffffff
224330 56074 HEADER 9 search-block-grid Y A 0 447842 447840 1 0 0 0 FULL_WIDTH div 0 0 N N Y #ffffff
224332 56074 FOOTER 3 Y A 0 447850 447849 1 0 0 0 FULL_WIDTH div 0 0 N N N #ffffff
224332 56074 FOOTER 4 Y A 0 447858 447856 1 0 1 0 RIGHT div 1 0 N N N
224339 56076 CONTENT 16 Y D 0 447966 447961 1 0 1 1 FULL_WIDTH div 1 0 N N N
224329 56074 TOP_PANEL 16 hidden-desktop Y A 0 447824 0 2 0 1 1 FULL_WIDTH div 1 0 N N N
224330 56074 HEADER 16 et-mobile-header hidden-desktop Y A 0 447828 0 2 0 1 1 FULL_WIDTH div 1 0 N N N
224332 56074 FOOTER 16 ty-footer-grid__full-width ty-footer-menu et-footer-wrapper hidden-tablet hidden-phone Y A 0 447848 0 2 0 1 1 FULL_WIDTH div 1 0 N N Y
224339 56076 CONTENT 16 main-content-grid et-product-wrapper Y A 0 447961 0 2 0 1 1 FULL_WIDTH div 1 0 N N N
224329 56074 TOP_PANEL 4 Y D 0 447825 447824 2 0 1 0 RIGHT div 1 0 N N N
224330 56074 HEADER 3 cart-content-grid Y A 0 447843 447840 2 0 1 0 RIGHT div 1 0 N N N
224332 56074 FOOTER 2 Y A 0 447852 447849 2 0 0 0 FULL_WIDTH div 0 0 N N Y #ffffff
224339 56076 CONTENT 16 mb-60 mt-60 Y D 0 447965 447961 2 0 1 1 FULL_WIDTH div 1 0 N N Y
224330 56074 HEADER 3 cart-content-grid Y A 0 447839 447836 3 0 1 0 RIGHT div 1 0 N N N #ffffff
224332 56074 FOOTER 3 my-account-grid Y A 0 447851 447849 3 0 0 0 FULL_WIDTH div 0 0 N N N #ffffff
224339 56076 CONTENT 16 et-product-blocks Y D 0 447963 447961 3 0 1 1 FULL_WIDTH div 1 0 N N N #ffffff
224330 56074 HEADER 16 et-mobile-header et-sticky hidden-desktop Y A 0 447831 0 4 0 1 1 FULL_WIDTH div 1 0 N N N
224332 56074 FOOTER 16 ty-footer-grid__full-width ty-footer-menu et-footer-wrapper hidden-desktop Y A 0 447855 0 4 0 1 1 FULL_WIDTH div 1 0 N N N
224332 56074 FOOTER 2 Y A 0 447861 447849 4 0 0 0 FULL_WIDTH div 0 0 N N N
224339 56076 CONTENT 16 Y A 0 447968 447961 4 0 1 1 FULL_WIDTH div 1 0 N N N
224332 56074 FOOTER 2 Y A 0 447860 447849 5 0 0 0 FULL_WIDTH div 0 0 N N N
224339 56076 CONTENT 16 Y A 0 447967 447961 5 0 1 1 FULL_WIDTH div 1 0 N N N
224330 56074 HEADER 16 et-sticky-header hidden-phone hidden-tablet Y A 0 447835 0 6 0 1 1 FULL_WIDTH div 1 0 N N Y #ffffff
224332 56074 FOOTER 16 ty-footer-grid__full-width footer-copyright Y A 0 447856 0 6 0 1 1 FULL_WIDTH div 1 0 N N Y
224332 56074 FOOTER 2 Y A 0 447863 447849 6 0 1 0 FULL_WIDTH div 1 0 N N Y
224330 56074 HEADER 16 et-fw-wrap margin-top margin-bottom hidden-phone hidden-tablet Y A 0 447840 0 8 0 1 1 FULL_WIDTH div 1 0 N N N #ffffff
224330 56074 HEADER 16 top-menu-grid hidden-phone hidden-tablet Y A 0 447844 0 10 0 1 1 FULL_WIDTH div 1 0 N N Y
224332 56074 FOOTER 16 mobile-sticky hidden-desktop Y A 0 447859 0 10 0 1 1 FULL_WIDTH div 1 0 N N Y
224332 56074 FOOTER 16 Y A 0 447862 0 12 0 1 1 FULL_WIDTH div 1 0 N N N