SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(6975, 6448, 7849, 7797, 6928)

Query time 0.00060

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "27.46"
    },
    "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": 66,
      "rows_produced_per_join": 66,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "14.26",
        "eval_cost": "13.20",
        "prefix_cost": "27.46",
        "data_read_per_join": "391K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (6975,6448,7849,7797,6928))"
    }
  }
}

Result

category_id parent_id
6474 6448
6508 6448
6530 6448
6566 6448
6596 6448
6621 6448
6649 6448
6677 6448
6694 6448
6728 6448
6780 6448
6803 6448
6828 6448
6846 6448
6865 6448
6975 6928
6979 6928
7095 6928
7243 6928
7250 6928
7291 6928
7293 6928
7334 6928
7348 6928
7363 6928
7372 6928
7387 6928
7577 6928
7662 6928
7719 6928
7727 6928
7748 6928
7766 6928
7797 6928
7891 6928
7899 6928
7905 6928
7911 6928
7962 6928
8053 6928
8209 6928
8308 6928
8324 6928
9387 6928
7002 6975
7018 6975
7047 6975
7072 6975
7096 6975
7117 6975
7138 6975
7154 6975
7171 6975
7192 6975
7209 6975
7221 6975
7815 7797
7837 7797
7849 7797
7890 7797
7909 7797
7954 7797
7968 7797
7992 7797
8000 7797