Query time 0.00041
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.68"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "l",
            "access_type": "ALL",
            "rows_examined_per_scan": 56,
            "rows_produced_per_join": 0,
            "filtered": "1.79",
            "cost_info": {
              "read_cost": "6.23",
              "eval_cost": "0.10",
              "prefix_cost": "6.33",
              "data_read_per_join": "231"
            },
            "used_columns": [
              "location_id",
              "dispatch",
              "is_default",
              "layout_id",
              "object_ids",
              "custom_html",
              "position"
            ],
            "attached_condition": "((`betaatif_store`.`l`.`layout_id` = 2) and (`betaatif_store`.`l`.`dispatch` = 'categories.view') and ((0 <> find_in_set(17,`betaatif_store`.`l`.`object_ids`)) or (`betaatif_store`.`l`.`object_ids` = '')))"
          }
        },
        {
          "table": {
            "table_name": "d",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "location_id",
              "lang_code"
            ],
            "key_length": "10",
            "ref": [
              "betaatif_store.l.location_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(d), (`betaatif_store`.`d`.`location_id` = `betaatif_store`.`l`.`location_id`), true)",
            "cost_info": {
              "read_cost": "0.25",
              "eval_cost": "0.10",
              "prefix_cost": "6.68",
              "data_read_per_join": "239"
            },
            "used_columns": [
              "location_id",
              "lang_code",
              "name",
              "title",
              "meta_description",
              "meta_keywords"
            ]
          }
        }
      ]
    }
  }
}
    
            
            
                Result
                                    
                                                    | location_id | dispatch | is_default | layout_id | object_ids | custom_html | position | lang_code | name | title | meta_description | meta_keywords | 
                                            
                                                            | 23 | categories.view | 0 | 2 |  |  | 40 | en | Categories |  |  |  |