SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    20197, 20198, 20199, 20200, 20204, 20205, 
    20206, 20207, 20211, 20212, 20216, 
    20217, 20218, 20219, 20220, 20221, 
    20226, 20227, 20228, 20229, 20230, 
    20231, 20232, 20233, 20234, 20235, 
    20236, 20237, 20238, 20239, 20240, 
    20244, 20245, 20246, 20250, 20251, 
    20252, 20253, 20258, 20265, 20266, 
    20267, 20268, 20269, 20275, 20276, 
    20277, 20278, 20279, 20280, 20281, 
    20282, 20283
  ) 
  AND category_id != 1

Query time 0.00007

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "parent", "p_category_id"],
          "key": "parent",
          "key_length": "3",
          "used_key_parts": ["parent_id"],
          "rows": 78,
          "filtered": 100,
          "index_condition": "cscart_categories.parent_id in (20197,20198,20199,20200,20204,20205,20206,20207,20211,20212,20216,20217,20218,20219,20220,20221,20226,20227,20228,20229,20230,20231,20232,20233,20234,20235,20236,20237,20238,20239,20240,20244,20245,20246,20250,20251,20252,20253,20258,20265,20266,20267,20268,20269,20275,20276,20277,20278,20279,20280,20281,20282,20283)",
          "attached_condition": "cscart_categories.category_id <> 1"
        }
      }
    ]
  }
}

Result

category_id parent_id
20201 20200
20202 20200
20203 20200
20208 20207
20209 20207
20210 20207
20213 20212
20214 20212
20215 20212
20222 20221
20223 20221
20224 20221
20225 20221
20241 20240
20242 20240
20243 20240
20247 20246
20248 20246
20249 20246
20254 20253
20255 20253
20256 20253
20257 20253
20259 20258
20260 20258
20261 20258
20262 20258
20263 20258
20264 20258
20270 20269
20271 20269
20272 20269
20273 20269
20274 20269