SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (196, 210, 212, 315, 316, 409)

Query time 0.00095

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "p_category_id"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["category_id"],
          "rows": 6,
          "filtered": 100,
          "index_condition": "cscart_categories.category_id in (196,210,212,315,316,409)"
        }
      }
    ]
  }
}

Result

id_path
106/196
110/210
110/212
110/315
98/316
409