SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '261/951/%'

Query time 0.00042

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE cscart_categories range id_path,idx_id_path id_path 767 1 Using index condition