SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    321, 1133, 814, 803, 234, 809, 787, 331, 
    174, 820
  ) 
  AND category_id != 264

Query time 0.00071

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "10.47"
    },
    "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": 51,
      "rows_produced_per_join": 51,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "5.37",
        "eval_cost": "5.10",
        "prefix_cost": "10.47",
        "data_read_per_join": "133K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "((`aomnia_com`.`cscart_categories`.`parent_id` in (321,1133,814,803,234,809,787,331,174,820)) and (`aomnia_com`.`cscart_categories`.`category_id` <> 264))"
    }
  }
}

Result

category_id parent_id
190 174
191 174
193 174
320 174
328 174
786 234
962 234
322 321
323 321
324 321
325 321
326 321
338 331
339 331
340 331
341 331
343 331
788 787
789 787
790 787
791 787
792 787
793 787
794 787
967 787
804 803
805 803
806 803
807 803
808 803
810 809
811 809
812 809
813 809
815 814
816 814
817 814
818 814
819 814
821 820
822 820
1134 1133