SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (808, 813, 814, 1004, 998, 999, 1000)

Query time 0.00059

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE cscart_categories range PRIMARY,p_category_id,idx_category_id PRIMARY 3 7 Using index condition

Result

id_path
737/902/808
737/902/813
737/902/814
737/902/998
737/902/999
737/902/1000
737/902/1004