SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    476, 1651, 319, 483, 1656, 1647, 1648, 
    1657, 478, 484, 325, 1652, 471, 1649, 
    480, 485, 1653, 479, 472, 1659, 465, 
    486, 1654, 473, 1658, 474, 1655, 481, 
    482, 475, 1597, 1598, 1646
  ) 
  AND category_id != 264

Query time 0.00029

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.0365197,
    "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": 52,
          "cost": 0.0365197,
          "filtered": 100,
          "attached_condition": "cscart_categories.parent_id in (476,1651,319,483,1656,1647,1648,1657,478,484,325,1652,471,1649,480,485,1653,479,472,1659,465,486,1654,473,1658,474,1655,481,482,475,1597,1598,1646) and cscart_categories.category_id <> 264",
          "using_index": true
        }
      }
    ]
  }
}

Result

category_id parent_id
471 319
472 319
473 319
474 319
475 319
1597 319
1598 319
1646 319
483 325
484 325
485 325
486 325
476 465
478 465
479 465
481 465
482 465
1647 480
1648 480
1649 480
1658 480
1656 1655
1657 1655
1659 1655