INNER JOIN `catalog_product_entity_int` AS `_table_de_groesse` ON (`_table_de_groesse`.`entity_id` = `e`.`entity_id`) AND (`_table_de_groesse`.`attribute_id` = '156') AND (`_table_de_groesse`.`store_id` = 0)
LEFT JOIN `catalog_product_entity_int` AS `_table_status` ON (`_table_status`.`entity_id` = `e`.`entity_id`) AND (`_table_status`.`attribute_id` = '84') AND (`_table_status`.`store_id` = '2') INNER JOIN `catalog_product_entity_int` AS `_table_status_default` ON (`_table_status_default`.`entity_id` = `e`.`entity_id`) AND (`_table_status_default`.`attribute_id` = '84') AND `_table_status_default`.`store_id` = 0 INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id='2' AND cat_index.visibility IN(2, 4) AND cat_index.category_id='4796'
+++++ SELECT `e`.*, `cat_index`.`position` AS `cat_index_position`, IF(_table_status.value_id > 0, _table_status.value, _table_status_default.value) AS `status`, `_table_de_groesse`.`value` AS `de_groesse`, `_table_ln_qty`.`value` AS `ln_qty` FROM `catalog_product_entity` AS `e`