SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    7846, 7900, 8103, 8158, 8180, 8186, 8265, 
    8303
  )

Query time 0.00053

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "14.63"
    },
    "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": 34,
      "rows_produced_per_join": 34,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "7.83",
        "eval_cost": "6.80",
        "prefix_cost": "14.63",
        "data_read_per_join": "201K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (7846,7900,8103,8158,8180,8186,8265,8303))"
    }
  }
}

Result

category_id parent_id
7852 7846
7885 7846
7892 7846
7907 7900
7915 7900
7952 7900
7995 7900
8009 7900
8014 7900
8022 7900
8096 7900
8107 8103
8128 8103
8133 8103
8142 8103
8148 8103
8164 8158
8166 8158
8173 8158
8189 8186
8202 8186
8208 8186
8211 8186
8224 8186
8251 8186
8259 8186
8271 8265
8284 8265
8291 8265
8310 8303
8314 8303
8343 8303
8348 8303