SELECT 
  * 
FROM 
  bm_containers as c 
  LEFT JOIN bm_grids as g ON g.container_id = c.container_id 
WHERE 
  1 
  AND g.container_id IN (149, 142, 151, 144) 
ORDER BY 
  g.order, 
  g.parent_id, 
  g.grid_id ASC

Query time 0.00080

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "21.75"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "12.63"
      },
      "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": "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"
            ],
            "attached_condition": "(`goimagine`.`c`.`container_id` in (149,142,151,144))"
          }
        },
        {
          "table": {
            "table_name": "g",
            "access_type": "ref",
            "possible_keys": [
              "container_id"
            ],
            "key": "container_id",
            "used_key_parts": [
              "container_id"
            ],
            "key_length": "3",
            "ref": [
              "goimagine.c.container_id"
            ],
            "rows_examined_per_scan": 3,
            "rows_produced_per_join": 12,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "5.05",
              "eval_cost": "1.26",
              "prefix_cost": "9.13",
              "data_read_per_join": "19K"
            },
            "used_columns": [
              "grid_id",
              "container_id",
              "parent_id",
              "order",
              "width",
              "offset",
              "user_class",
              "omega",
              "alpha",
              "wrapper",
              "content_align",
              "html_element",
              "clear",
              "status",
              "section_class",
              "section_width"
            ]
          }
        }
      ]
    }
  }
}

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 section_class section_width
144 36 FOOTER 16 col_4 Y A 0 163 0 0 0 1 1 FULL_WIDTH div 1 S
149 38 TOP_PANEL 16 N A 0 185 0 0 0 1 1 FULL_WIDTH div 1 S
151 38 CONTENT 16 breadcrumbs-grid Y D 0 186 0 0 0 1 1 FULL_WIDTH div 1 S
144 36 FOOTER 4 Y A 0 164 163 0 0 0 1 FULL_WIDTH div 0 S
144 36 FOOTER 8 Y A 0 792 168 0 0 0 1 LEFT div 0 S
142 36 HEADER 3 top-logo-grid Y A 0 157 0 1 0 0 1 FULL_WIDTH div 0 S
144 36 FOOTER 16 Y A 0 168 0 1 0 1 1 FULL_WIDTH div 1 th_copyright_section S
151 38 CONTENT 16 main-content-grid th_detail-page Y A 0 187 0 1 0 1 1 FULL_WIDTH div 1 S
144 36 FOOTER 4 Y A 0 165 163 1 0 0 0 FULL_WIDTH div 0 S
144 36 FOOTER 8 th_copyright_section__content Y A 0 169 168 1 0 1 0 RIGHT div 1 S
142 36 HEADER 7 Y A 0 158 0 2 1 0 0 FULL_WIDTH div 0 S
151 38 CONTENT 16 hidden-phone Y A 0 189 0 2 0 1 1 FULL_WIDTH div 1 S
144 36 FOOTER 4 Y A 0 166 163 2 0 0 0 FULL_WIDTH div 0 S
142 36 HEADER 5 Y A 0 159 0 3 0 1 0 RIGHT div 1 S
151 38 CONTENT 16 hidden-tablet hidden-desktop Y A 0 752 0 3 0 1 1 FULL_WIDTH div 1 S
144 36 FOOTER 4 Y A 0 167 163 3 0 1 0 FULL_WIDTH div 1 S
142 36 HEADER 16 Y A 0 160 0 4 0 1 1 FULL_WIDTH div 1 tt_header-menu__section S
151 38 CONTENT 16 Y A 0 958 0 4 0 1 1 FULL_WIDTH div 1 S
142 36 HEADER 16 ath_vendordomain_header Y A 0 683 0 5 0 1 1 FULL_WIDTH div 1 S
142 36 HEADER 16 Y A 0 753 0 6 0 1 1 FULL_WIDTH div 1 tt_header-menu__section S