SELECT 1 AS `status`, `e`.`entity_id`, `e`.`attribute_set_id`, `e`.`type_id`, `e`.`created_at`, `e`.`updated_at`, `e`.`sku`, `idx_table`.`product_id`, `idx_table`.`store_id` AS `item_store_id`, `idx_table`.`added_at`, COUNT(e.entity_id) AS `popularity`, `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`.`manufacturer`, `e`.`manufacturer_value`, `e`.`image`, `e`.`small_image`, `e`.`thumbnail`, `e`.`color`, `e`.`color_value`, `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`.`grit`, `e`.`grit_value`, `e`.`bond`, `e`.`bond_value`, `e`.`brush_dia`, `e`.`brush_dia_value`, `e`.`wire_size`, `e`.`wire_size_value`, `e`.`oal`, `e`.`oal_value`, `e`.`face_width`, `e`.`face_width_value`, `e`.`arbor_hole_size`, `e`.`arbor_hole_size_value`, `e`.`burr_number`, `e`.`burr_number_value`, `e`.`burr_dia`, `e`.`burr_dia_value`, `e`.`degree_included`, `e`.`degree_included_value`, `e`.`c_drill_size`, `e`.`c_drill_size_value`, `e`.`body_dia`, `e`.`body_dia_value`, `e`.`size`, `e`.`size_value`, `e`.`drill_dia`, `e`.`drill_dia_value`, `e`.`point_degree`, `e`.`point_degree_value`, `e`.`drill_number`, `e`.`drill_number_value`, `e`.`letter_size`, `e`.`letter_size_value`, `e`.`graduation`, `e`.`graduation_value`, `e`.`spc_output`, `e`.`spc_output_value`, `e`.`radius`, `e`.`radius_value`, `e`.`no_of_flutes`, `e`.`no_of_flutes_value`, `e`.`coating`, `e`.`coating_value`, `e`.`fluid_size`, `e`.`fluid_size_value`, `e`.`npt_tap_size`, `e`.`npt_tap_size_value`, `e`.`thread_type`, `e`.`thread_type_value`, `e`.`tap_size`, `e`.`tap_size_value`, `e`.`limit`, `e`.`limit_value`, `e`.`free_speed_rpm`, `e`.`free_speed_rpm_value`, `e`.`shank`, `e`.`shank_value`, `e`.`dia`, `e`.`dia_value`, `e`.`flute_length`, `e`.`flute_length_value`, `e`.`mount`, `e`.`mount_value`, `e`.`capacity`, `e`.`capacity_value`, `e`.`jacobs_taper`, `e`.`jacobs_taper_value`, `e`.`grade`, `e`.`grade_value`, `e`.`accuracy`, `e`.`accuracy_value`, `e`.`resolution`, `e`.`resolution_value`, `e`.`dial_reading`, `e`.`dial_reading_value`, `e`.`collet_size`, `e`.`collet_size_value`, `e`.`collet_capacity`, `e`.`collet_capacity_value`, `e`.`blade_width_x_length`, `e`.`blade_width_x_length_value`, `e`.`style`, `e`.`style_value`, `e`.`o_d`, `e`.`o_d_value`, `e`.`die_size`, `e`.`die_size_value`, `e`.`capscrew_size`, `e`.`capscrew_size_value`, `e`.`pilot_dia`, `e`.`pilot_dia_value`, `e`.`drive_size`, `e`.`drive_size_value`, `e`.`lens_color`, `e`.`lens_color_value`, `e`.`frame_color`, `e`.`frame_color_value`, `e`.`max_opening`, `e`.`max_opening_value`, `e`.`throat_depth`, `e`.`throat_depth_value`, `e`.`blade_no`, `e`.`blade_no_value`, `e`.`application`, `e`.`application_value`, `e`.`tip_size`, `e`.`tip_size_value`, `e`.`drive`, `e`.`drive_value`, `e`.`torque_range`, `e`.`torque_range_value`, `e`.`increments`, `e`.`increments_value`, `e`.`hammer_weight`, `e`.`hammer_weight_value`, `e`.`length`, `e`.`length_value`, `e`.`broach_size`, `e`.`broach_size_value`, `e`.`broach_dia`, `e`.`broach_dia_value`, `e`.`keyway_width`, `e`.`keyway_width_value`, `e`.`no_of_shims`, `e`.`no_of_shims_value`, `e`.`square_size`, `e`.`square_size_value`, `stock_status_index`.`stock_status` AS `is_salable` FROM `catalog_product_flat_1` AS `e` INNER JOIN `report_viewed_product_index` AS `idx_table` ON (idx_table.product_id=e.entity_id) 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 WHERE (added_at > '2018-04-26 15:54:18') GROUP BY `e`.`entity_id` HAVING (COUNT(e.entity_id) >= 1) ORDER BY `cat_index_position` asc, `e`.`entity_id` asc, `e`.`entity_id` asc LIMIT 9 Popular

Popular