>SELECT c2.cat_id, c2.cat_path 
> FROM categories c1 INNER JOIN categories c2 ON c2.cat_path LIKE CONCAT(c1.cat_path,'%')
> WHERE c1.cat_id='5' AND c2.cat_active=1
Table 'komfortbt.categories' doesn't exist
Back