CREATE VIEW `sivir_catalog_subcategory` AS
SELECT `category`.*
FROM `sivir_catalog_items` AS `category`
WHERE `category`.`catalog_code` = 'CATEGORY'
AND `category`.`catalog_code_dep` = 'CATEGORY'
AND `category`.`catalog_id_dep` != 0
AND `category`.`status` = 'A'
