Puuriterad

SELECT 1 AS `status`, `e`.`entity_id`, `e`.`attribute_set_id`, `e`.`type_id`, `e`.`created_at`, `e`.`updated_at`, `e`.`sku`, `cat_index`.`position` AS `cat_index_position`, `e`.`name`, `e`.`short_description`, `e`.`price`, `e`.`special_price`, `e`.`special_from_date`, `e`.`special_to_date`, `e`.`image`, `e`.`small_image`, `e`.`thumbnail`, `e`.`news_from_date`, `e`.`news_to_date`, `e`.`required_options`, `e`.`image_label`, `e`.`small_image_label`, `e`.`thumbnail_label`, `e`.`url_key`, `e`.`msrp`, `e`.`msrp_display_actual_price_type`, `e`.`price_type`, `e`.`weight_type`, `e`.`price_view`, `e`.`links_purchased_separately`, `e`.`links_exist`, `e`.`swatch_image`, `e`.`tax_class_id`, `e`.`height`, `e`.`width`, `e`.`depth`, `e`.`ean`, `e`.`item_class`, `e`.`msq`, `e`.`blade_type`, `e`.`brand`, `e`.`type`, `e`.`shank`, `e`.`length_attribute`, `e`.`application`, `e`.`length_cm`, `e`.`packaging_type`, `e`.`length_m`, `e`.`scale`, `e`.`drive_type`, `e`.`laser_type`, `e`.`shaft_material`, `e`.`diameter_mm`, `e`.`diameter_mm_value`, `e`.`handle_material`, `e`.`abc`, `e`.`filter_class`, `e`.`respirator_type`, `e`.`screw_bolt_drive_type`, `e`.`blade_shape`, `e`.`blade_thickness_mm`, `e`.`length_mm`, `e`.`tpi`, `e`.`blade_length_mm`, `e`.`tip`, `e`.`inner_diameter_mm`, `e`.`outer_diameter_mm`, `e`.`handle_shape`, `e`.`capacity_l`, `e`.`color_of_lenses`, `e`.`coating_of_lenses`, `e`.`battery_capacity_mah`, `e`.`lumens_max_lm`, `e`.`protection_class`, `e`.`insole_size`, `e`.`insole_size_value`, `e`.`safety_class`, `e`.`shoe_feature`, `e`.`product_family`, `e`.`blade_lock_type`, `e`.`blade_height_mm`, `e`.`width_mm_attribute`, `e`.`width_mm_attribute_value`, `e`.`coating_treatement`, `e`.`en374`, `e`.`spectacle_feature`, `e`.`color`, `e`.`lense_uv_rating`, `e`.`lense_uv_rating_value`, `e`.`blade_material`, `e`.`flex_grade`, `e`.`knife_length__mm`, `e`.`toothing`, `e`.`size`, `e`.`opening_mm`, `e`.`thread_type`, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `stock_status_index`.`stock_status` AS `is_salable` FROM `catalog_product_flat_2` AS `e` 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='638' INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0 LEFT JOIN `cataloginventory_stock_status` AS `stock_status_index` ON e.entity_id = stock_status_index.product_id AND stock_status_index.website_id = 0 AND stock_status_index.stock_id = 1 INNER JOIN `search_tmp_6652492a8a6881_49278615` AS `search_result` ON e.entity_id = search_result.entity_id ORDER BY `cat_index_position` ASC, `cat_index`.`position` ASC, `e`.`entity_id` DESC LIMIT 30