SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (1, 3, 5)

Query time 0.00029

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": [
        "PRIMARY",
        "p_category_id"
      ],
      "rows": 7,
      "filtered": 42.857,
      "attached_condition": "(`_testcscart`.`cscart_categories`.`category_id` in (1,3,5))"
    }
  }
}

Result

id_path
1
3
5