SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    6809, 8229, 7435, 7135, 7080, 7301, 6897, 
    6870, 7242
  )

Query time 0.00111

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "58.71"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "parent"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 144,
      "rows_produced_per_join": 144,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "29.91",
        "eval_cost": "28.80",
        "prefix_cost": "58.71",
        "data_read_per_join": "853K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (6809,8229,7435,7135,7080,7301,6897,6870,7242))"
    }
  }
}

Result

category_id parent_id
6844 6809
6850 6809
6870 6809
6962 6809
6882 6870
6897 6870
6941 6870
7283 7080
7288 7080
7302 7080
7308 7080
7342 7080
7352 7080
7370 7080
7382 7080
7394 7080
7401 7080
7402 7080
7403 7080
7404 7080
7405 7080
7406 7080
7407 7080
7408 7080
7409 7080
7410 7080
7411 7080
7412 7080
7413 7080
7414 7080
7415 7080
7416 7080
7417 7080
7418 7080
7419 7080
7420 7080
7421 7080
7422 7080
7423 7080
7424 7080
7425 7080
7426 7080
7427 7080
7428 7080
7429 7080
7430 7080
7431 7080
7432 7080
7433 7080
7434 7080
7435 7080
7436 7080
7437 7080
7438 7080
7439 7080
7440 7080
7441 7080
7442 7080
7443 7080
7444 7080
7445 7080
7446 7080
7447 7080
7448 7080
7449 7080
7450 7080
7451 7080
7452 7080
7453 7080
7827 7080
7834 7080
7838 7080
7841 7080
7844 7080
7848 7080
7853 7080
7884 7080
7889 7080
7894 7080
7901 7080
7906 7080
7908 7080
7949 7080
7957 7080
7964 7080
7967 7080
7143 7135
7240 7135
7241 7135
7242 7135
7274 7135
7621 7135
7622 7135
7623 7135
8993 7135
9005 7135
7300 7242
7301 7242
7345 7242
7383 7242
7606 7242
7607 7242
7328 7301
7329 7301
8066 7435
8112 7435
8113 7435
8114 7435
8115 7435
8116 7435
8117 7435
8118 7435
8119 7435
8120 7435
8121 7435
8122 7435
8123 7435
8124 7435
8125 7435
8126 7435
8127 7435
8229 7435
8230 7435
8231 7435
8232 7435
8233 7435
8234 7435
8235 7435
8236 7435
8237 7435
8238 7435
8239 7435
8240 7435
8241 7435
8242 7435
8243 7435
8244 7435
8245 7435
8246 7435
8247 7435
8248 7435
8249 7435