SELECT 
  category_id, 
  parent_id 
FROM 
  ushop_categories 
WHERE 
  parent_id IN(318, 315, 316) 
  AND category_id != 264

Query time 0.00103

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "28.66"
    },
    "table": {
      "table_name": "ushop_categories",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 62,
      "rows_produced_per_join": 62,
      "filtered": "100.00",
      "index_condition": "(`marketplace`.`ushop_categories`.`parent_id` in (318,315,316))",
      "cost_info": {
        "read_cost": "22.46",
        "eval_cost": "6.20",
        "prefix_cost": "28.66",
        "data_read_per_join": "201K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`marketplace`.`ushop_categories`.`category_id` <> 264)"
    }
  }
}

Result

category_id parent_id
348 315
351 315
352 315
365 315
619 315
620 315
621 315
622 315
623 315
624 315
625 315
626 315
627 315
628 315
629 315
349 316
353 316
359 316
503 316
504 316
505 316
506 316
507 316
508 316
509 316
510 316
511 316
512 316
513 316
514 316
515 316
516 316
517 316
518 316
519 316
520 316
521 316
354 318
355 318
357 318
670 318
678 318
689 318
695 318
696 318
697 318
698 318
699 318
700 318
701 318
702 318
703 318
704 318
705 318
706 318
707 318
744 318
745 318
746 318