SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    18416, 18531, 18532, 18533, 18536, 18545, 
    18546, 18552, 18558, 18584, 18596, 
    18620, 18621, 18641, 18646, 18647, 
    18648, 18649
  ) 
  AND category_id != 1

Query time 0.00008

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": 93,
          "filtered": 100,
          "index_condition": "cscart_categories.parent_id in (18416,18531,18532,18533,18536,18545,18546,18552,18558,18584,18596,18620,18621,18641,18646,18647,18648,18649)",
          "attached_condition": "cscart_categories.category_id <> 1"
        }
      }
    ]
  }
}

Result

category_id parent_id
18534 18533
18535 18533
18537 18536
18538 18536
18539 18536
18540 18536
18541 18536
18542 18536
18543 18536
18544 18536
18547 18546
18548 18546
18549 18546
18550 18546
18551 18546
18553 18552
18554 18552
18555 18552
18556 18552
18557 18552
18559 18558
18560 18558
18561 18558
18562 18558
18563 18558
18564 18558
18565 18558
18566 18558
18567 18558
18568 18558
18569 18558
18573 18558
18580 18558
18585 18584
18586 18584
18587 18584
18588 18584
18589 18584
18590 18584
18591 18584
18592 18584
18597 18596
18598 18596
18599 18596
18600 18596
18601 18596
18602 18596
18603 18596
18604 18596
18605 18596
18606 18596
18607 18596
18608 18596
18609 18596
18610 18596
18611 18596
18612 18596
18616 18596
18617 18596
18618 18596
18619 18596
18622 18621
18623 18621
18624 18621
18625 18621
18626 18621
18627 18621
18628 18621
18635 18621
18636 18621
18637 18621
18638 18621
18639 18621
18640 18621
18642 18641
18643 18641
18644 18641
18645 18641
18650 18649
18654 18649
18655 18649
18656 18649
18657 18649
18658 18649
18663 18649