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 (21, 22, 23, 24) 
ORDER BY 
  g.order, 
  g.parent_id, 
  g.grid_id ASC

Query time 0.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "29.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "7.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "g",
            "access_type": "range",
            "possible_keys": [
              "container_id"
            ],
            "key": "container_id",
            "used_key_parts": [
              "container_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 7,
            "rows_produced_per_join": 7,
            "filtered": "100.00",
            "index_condition": "((`satishecarter_march_003`.`g`.`container_id` in (21,22,23,24)) and (`satishecarter_march_003`.`g`.`container_id` is not null))",
            "cost_info": {
              "read_cost": "12.41",
              "eval_cost": "1.40",
              "prefix_cost": "13.81",
              "data_read_per_join": "5K"
            },
            "used_columns": [
              "grid_id",
              "container_id",
              "parent_id",
              "order",
              "width",
              "offset",
              "user_class",
              "omega",
              "alpha",
              "wrapper",
              "content_align",
              "html_element",
              "clear",
              "status"
            ]
          }
        },
        {
          "table": {
            "table_name": "c",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "container_id"
            ],
            "key_length": "3",
            "ref": [
              "satishecarter_march_003.g.container_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 7,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.00",
              "eval_cost": "1.40",
              "prefix_cost": "22.21",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "container_id",
              "location_id",
              "position",
              "width",
              "user_class",
              "linked_to_default",
              "status",
              "company_id"
            ]
          }
        }
      ]
    }
  }
}

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
21 6 TOP_PANEL 16 N A 0 45 0 0 0 0 0 FULL_WIDTH div 0
22 6 HEADER 3 top-logo-grid N A 0 46 0 0 0 1 1 FULL_WIDTH div 1
23 6 CONTENT 12 main-content-grid Y A 0 47 0 0 0 0 1 blocks/grid_wrappers/lite_checkout.tpl FULL_WIDTH div 0
23 6 CONTENT 4 side-grid litecheckout__cart Y A 0 48 0 0 0 1 0 FULL_WIDTH div 1
24 6 FOOTER 16 ty-footer-grid__full-width footer-copyright N A 0 49 0 0 0 1 1 FULL_WIDTH div 1
24 6 FOOTER 2 N A 0 50 49 0 0 0 1 LEFT div 0
24 6 FOOTER 14 N A 0 51 49 0 0 1 0 FULL_WIDTH div 1