SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    1716, 1206, 644, 319, 1629, 1630, 1656, 
    1632, 317, 484, 325, 471, 485, 215, 309, 
    1655, 1614, 1617, 985, 241, 902
  ) 
  AND category_id != 264

Query time 0.00023

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.03217309,
    "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"],
          "loops": 1,
          "rows": 90,
          "cost": 0.03217309,
          "filtered": 100,
          "attached_condition": "cscart_categories.parent_id in (1716,1206,644,319,1629,1630,1656,1632,317,484,325,471,485,215,309,1655,1614,1617,985,241,902) and cscart_categories.category_id <> 264",
          "using_index": true
        }
      }
    ]
  }
}

Result

category_id parent_id
337 215
339 215
658 215
1613 215
1614 215
1683 215
644 241
645 241
345 309
1687 309
1688 309
1689 309
319 317
325 317
465 317
480 317
1650 317
1655 317
471 319
472 319
473 319
474 319
475 319
1597 319
1598 319
1646 319
483 325
484 325
485 325
486 325
646 644
647 644
648 644
649 644
654 644
978 902
979 902
980 902
981 902
982 902
983 902
984 902
985 902
986 902
987 902
1206 985
1207 985
1208 985
1209 985
1210 985
1211 985
1212 985
1676 1614
1677 1614
1678 1614
1679 1614
1680 1614
1681 1614
1682 1614
1618 1617
1619 1617
1620 1617
1621 1617
1622 1617
1623 1617
1624 1617
1625 1617
1626 1617
1627 1617
1630 1629
1631 1630
1632 1630
1633 1630
1634 1630
1635 1630
1636 1630
1637 1630
1638 1630
1639 1630
1640 1630
1656 1655
1657 1655
1659 1655