SELECT 1 AS `status`, `e`.`entity_id`, `e`.`attribute_set_id`, `e`.`type_id`, `e`.`created_at`, `e`.`updated_at`, `e`.`sku`, `e`.`required_options`, `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`, `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`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`stock_status` AS `is_salable`, `links`.`link_id`, `link_attribute_position_int`.`value` AS `position` FROM `catalog_product_flat_2` AS `e` 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 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='2' 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 `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1 LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '1' INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (links.product_id = 9793) AND (e.entity_id != '9793') ORDER BY `position` ASC SELECT 1 AS `status`, `e`.`entity_id`, `e`.`attribute_set_id`, `e`.`type_id`, `e`.`created_at`, `e`.`updated_at`, `e`.`sku`, `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`, `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`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`stock_status` AS `is_salable`, `links`.`link_id`, `link_attribute_position_int`.`value` AS `position` FROM `catalog_product_flat_2` AS `e` 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 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='2' 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 `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 4 LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2' INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (links.product_id = 9793) AND (e.entity_id != '9793') ORDER BY `position` ASC SELECT 1 AS `status`, `e`.`entity_id`, `e`.`attribute_set_id`, `e`.`type_id`, `e`.`created_at`, `e`.`updated_at`, `e`.`sku`, `e`.`entity_id`, `e`.`attribute_set_id`, `e`.`type_id`, `e`.`abc`, `e`.`application`, `e`.`battery_capacity_mah`, `e`.`blade_height_mm`, `e`.`blade_length_mm`, `e`.`blade_lock_type`, `e`.`blade_material`, `e`.`blade_shape`, `e`.`blade_thickness_mm`, `e`.`blade_type`, `e`.`brand`, `e`.`capacity_l`, `e`.`coating_of_lenses`, `e`.`coating_treatement`, `e`.`color`, `e`.`color_of_lenses`, `e`.`cost`, `e`.`created_at`, `e`.`depth`, `e`.`description`, `e`.`diameter_mm`, `e`.`diameter_mm_value`, `e`.`drive_type`, `e`.`ean`, `e`.`en374`, `e`.`filter_class`, `e`.`flex_grade`, `e`.`gift_message_available`, `e`.`handle_material`, `e`.`handle_shape`, `e`.`has_options`, `e`.`height`, `e`.`image`, `e`.`image_label`, `e`.`inner_diameter_mm`, `e`.`insole_size`, `e`.`insole_size_value`, `e`.`item_class`, `e`.`knife_length__mm`, `e`.`laser_type`, `e`.`length_attribute`, `e`.`length_cm`, `e`.`length_m`, `e`.`length_mm`, `e`.`lense_uv_rating`, `e`.`lense_uv_rating_value`, `e`.`links_exist`, `e`.`links_purchased_separately`, `e`.`links_title`, `e`.`lumens_max_lm`, `e`.`manufacturer`, `e`.`manufacturer_value`, `e`.`msq`, `e`.`msrp`, `e`.`msrp_display_actual_price_type`, `e`.`name`, `e`.`news_from_date`, `e`.`news_to_date`, `e`.`opening_mm`, `e`.`outer_diameter_mm`, `e`.`packaging_type`, `e`.`price`, `e`.`price_type`, `e`.`price_view`, `e`.`product_family`, `e`.`protection_class`, `e`.`required_options`, `e`.`respirator_type`, `e`.`safety_class`, `e`.`scale`, `e`.`screw_bolt_drive_type`, `e`.`shaft_material`, `e`.`shank`, `e`.`shoe_feature`, `e`.`short_description`, `e`.`size`, `e`.`sku`, `e`.`sku_type`, `e`.`small_image`, `e`.`small_image_label`, `e`.`special_from_date`, `e`.`special_price`, `e`.`special_to_date`, `e`.`spectacle_feature`, `e`.`swatch_image`, `e`.`tax_class_id`, `e`.`thread_type`, `e`.`thumbnail`, `e`.`thumbnail_label`, `e`.`tip`, `e`.`toothing`, `e`.`tpi`, `e`.`type`, `e`.`updated_at`, `e`.`url_key`, `e`.`url_path`, `e`.`visibility`, `e`.`weight`, `e`.`weight_type`, `e`.`width`, `e`.`width_mm_attribute`, `e`.`width_mm_attribute_value`, `cat_index`.`position` AS `cat_index_position`, `at_inventory_in_stock`.`is_in_stock` AS `inventory_in_stock`, `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='2' INNER JOIN `cataloginventory_stock_item` AS `at_inventory_in_stock` ON (at_inventory_in_stock.`product_id`=e.entity_id) AND ((at_inventory_in_stock.use_config_manage_stock = 0 AND at_inventory_in_stock.manage_stock=1 AND at_inventory_in_stock.is_in_stock=1) OR (at_inventory_in_stock.use_config_manage_stock = 0 AND at_inventory_in_stock.manage_stock=0) OR (at_inventory_in_stock.use_config_manage_stock = 1 AND at_inventory_in_stock.is_in_stock=1)) 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 WHERE (e.brand IN('259')) AND (e.entity_id != '9793') ORDER BY RAND() LIMIT 7