SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '2910/3105/3104/%'

Query time 0.00063

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.08"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "id_path"
      ],
      "key": "id_path",
      "used_key_parts": [
        "id_path"
      ],
      "key_length": "767",
      "rows_examined_per_scan": 37,
      "rows_produced_per_join": 37,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "11.68",
        "eval_cost": "7.40",
        "prefix_cost": "19.08",
        "data_read_per_join": "219K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`id_path` like '2910/3105/3104/%')"
    }
  }
}

Result

category_id
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3161
3162
3163
3164
3165
3166
3167
3168
3169
3724
3728
3170
3171
3172
3173
3174
3175
3176
3177
3131
3132
3133
3134
3135
3136
3137