SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    7187, 7340, 7185, 7186, 7188, 7217, 7221, 
    7219
  ) 
  AND category_id != 1

Query time 0.00046

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "3.66"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id",
        "category_id"
      ],
      "key_length": "6",
      "rows_examined_per_scan": 17,
      "rows_produced_per_join": 17,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "1.96",
        "eval_cost": "1.70",
        "prefix_cost": "3.66",
        "data_read_per_join": "44K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`parent_id` in (7187,7340,7185,7186,7188,7217,7221,7219)) and (`nuie_scalesta_net`.`cscart_categories`.`category_id` <> 1))"
    }
  }
}

Result

category_id parent_id
7220 7219
7343 7219
7341 7340