SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(8229, 7435)

Query time 0.00040

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "16.64"
    },
    "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": 39,
      "rows_produced_per_join": 39,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "8.84",
        "eval_cost": "7.80",
        "prefix_cost": "16.64",
        "data_read_per_join": "231K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (8229,7435))"
    }
  }
}

Result

category_id parent_id
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