SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '166/%'

Query time 0.00025

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "20.20"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": [
        "id_path"
      ],
      "rows_examined_per_scan": 84,
      "rows_produced_per_join": 34,
      "filtered": "40.48",
      "cost_info": {
        "read_cost": "13.40",
        "eval_cost": "6.80",
        "prefix_cost": "20.20",
        "data_read_per_join": "88K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ],
      "attached_condition": "(`satishecarter_dec_setup_001`.`cscart_categories`.`id_path` like '166/%')"
    }
  }
}

Result

category_id
174
175
176
177
178
179
180
181
182
199
185
186
187
188
189
190
191
194
193
195
196
197
198
200
202
234
235
236
237
238
240
254
255
263