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`.`row_id`, `e`.`activity`, `e`.`allow_open_amount`, `e`.`bazaarvoice_id`, `e`.`benefits`, `e`.`bv_category_id`, `e`.`bv_feed_exclude`, `e`.`category_gear`, `e`.`climate`, `e`.`collar`, `e`.`color`, `e`.`color_value`, `e`.`cost`, `e`.`created_at`, `e`.`description`, `e`.`eco_collection`, `e`.`email_template`, `e`.`erin_recommends`, `e`.`features_bags`, `e`.`flavor`, `e`.`flavor_value`, `e`.`format`, `e`.`format_value`, `e`.`freight_class`, `e`.`gender`, `e`.`giftcard_amounts`, `e`.`giftcard_type`, `e`.`gift_message_available`, `e`.`gift_wrapping_available`, `e`.`gift_wrapping_price`, `e`.`has_options`, `e`.`image`, `e`.`image_label`, `e`.`ingredients`, `e`.`ingredient_attributes`, `e`.`is_redeemable`, `e`.`lifetime`, `e`.`links_exist`, `e`.`links_purchased_separately`, `e`.`links_title`, `e`.`material`, `e`.`msrp`, `e`.`msrp_display_actual_price_type`, `e`.`must_ship_freight`, `e`.`name`, `e`.`nb_nosto_special`, `e`.`new`, `e`.`news_from_date`, `e`.`news_to_date`, `e`.`nosto_image`, `e`.`nutrition`, `e`.`open_amount_max`, `e`.`open_amount_min`, `e`.`package_type`, `e`.`package_type_value`, `e`.`pattern`, `e`.`performance_fabric`, `e`.`price`, `e`.`price_type`, `e`.`price_view`, `e`.`purpose`, `e`.`purpose_value`, `e`.`required_options`, `e`.`sale`, `e`.`shipperhq_availability_date`, `e`.`shipperhq_declared_value`, `e`.`shipperhq_dim_group`, `e`.`shipperhq_dim_group_value`, `e`.`shipperhq_handling_fee`, `e`.`shipperhq_hs_code`, `e`.`shipperhq_malleable_product`, `e`.`shipperhq_master_boxes`, `e`.`shipperhq_nmfc_class`, `e`.`shipperhq_nmfc_sub`, `e`.`shipperhq_poss_boxes`, `e`.`shipperhq_shipping_fee`, `e`.`shipperhq_shipping_group`, `e`.`shipperhq_volume_weight`, `e`.`shipperhq_warehouse`, `e`.`ship_height`, `e`.`ship_length`, `e`.`ship_separately`, `e`.`ship_width`, `e`.`short_description`, `e`.`size`, `e`.`size_value`, `e`.`sku`, `e`.`sku_type`, `e`.`sleeve`, `e`.`small_image`, `e`.`small_image_label`, `e`.`special_from_date`, `e`.`special_price`, `e`.`special_to_date`, `e`.`strap_bags`, `e`.`style_bags`, `e`.`style_bottom`, `e`.`style_general`, `e`.`subscription_enabled`, `e`.`swatch_image`, `e`.`tax_class_id`, `e`.`thumbnail`, `e`.`thumbnail_label`, `e`.`upc_code`, `e`.`updated_at`, `e`.`url_key`, `e`.`url_path`, `e`.`use_config_email_template`, `e`.`use_config_is_redeemable`, `e`.`use_config_lifetime`, `e`.`violator_tag`, `e`.`violator_tag_value`, `e`.`visibility`, `e`.`weight`, `e`.`weight_type`, `cat_index`.`position` AS `cat_index_position`, `product_entity`.`row_id`, `stock_status_index`.`stock_status` AS `is_salable` FROM `catalog_product_flat_1` AS `e`
INNER JOIN `catalog_category_product_index_store1` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.category_id=4
INNER JOIN `catalog_product_entity` AS `product_entity` ON product_entity.entity_id = e.entity_id AND (product_entity.created_in <= '1609488000' AND product_entity.updated_in > '1609488000')
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 ORDER BY `cat_index_position` ASC
LIMIT 30