SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(6231, 6446, 6887, 6970)

Query time 0.00069

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.04"
    },
    "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": 45,
      "rows_produced_per_join": 45,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "10.04",
        "eval_cost": "9.00",
        "prefix_cost": "19.04",
        "data_read_per_join": "266K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (6231,6446,6887,6970))"
    }
  }
}

Result

category_id parent_id
6252 6231
6269 6231
6282 6231
6297 6231
6318 6231
6432 6231
6460 6446
6470 6446
6477 6446
6486 6446
6497 6446
6503 6446
6511 6446
6517 6446
6523 6446
6533 6446
6586 6446
6602 6446
6611 6446
6623 6446
6640 6446
6657 6446
6671 6446
6707 6446
6751 6446
6766 6446
6778 6446
6789 6446
6817 6446
6826 6446
6833 6446
6843 6446
6849 6446
6861 6446
8986 6446
6901 6887
6912 6887
6922 6887
6940 6887
6952 6887
6985 6970
6998 6970
7007 6970
7016 6970
7044 6970