"Back"

SQL Select

{{{Executed SQL}}{{Executed SQL}}{{Executed SQL}}{{Mage_Core}}}
SELECT `e`.*, IF(at_is_active.value_id > 0, at_is_active.value, at_is_active_default.value) AS `is_active` FROM `catalog_category_entity` AS `e` INNER JOIN `catalog_category_entity_int` AS `at_is_active_default` ON (`at_is_active_default`.`entity_id` = `e`.`entity_id`) AND (`at_is_active_default`.`attribute_id` = '42') AND `at_is_active_default`.`store_id` = 0 LEFT JOIN `catalog_category_entity_int` AS `at_is_active` ON (`at_is_active`.`entity_id` = `e`.`entity_id`) AND (`at_is_active`.`attribute_id` = '42') AND (`at_is_active`.`store_id` = 1) WHERE (`e`.`entity_type_id` = '3') AND (`e`.`entity_id` IN('66', '67', '161')) AND (IF(at_is_active.value_id > 0, at_is_active.value, at_is_active_default.value) = '1')
entity_id entity_type_id attribute_set_id parent_id created_at updated_at path position level children_count is_active
66 3 3 2 2015-10-14 02:43:21 2015-12-01 03:10:48 1/2/66 1 2 54 1
67 3 3 66 2015-10-14 02:50:30 2015-11-28 16:22:23 1/2/66/67 1 3 53 1
161 3 3 67 2015-10-19 03:44:27 2017-11-13 02:14:15 1/2/66/67/161 1 4 0 1