SELECT DISTINCT `e`.*, `cat_index`.`position` AS `cat_index_position`, `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_entity` AS `e`
INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(2, 4) AND cat_index.category_id='207'
INNER JOIN `catalog_product_index_price_store` 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 (e.entity_id NOT IN (3153, 3177, 3199, 7678, 8774, 10852, 3154, 3178, 3200, 7679, 8966, 10853, 3156, 3179, 3201, 7680, 8967, 11044, 3158, 3180, 3202, 7690, 9662, 11045, 3159, 3181, 3203, 7831, 10262, 8815, 3160, 3182, 3205, 8364, 10263, 8816, 3161, 3183, 3206, 8408, 10264, 9180, 3163, 3184, 3207, 8409, 10265, 3164, 3185, 3208, 8410, 10717, 3167, 3186, 3209, 8555, 10718, 3168, 3187, 3210, 8764, 10719, 3170, 3189, 3212, 8769, 10720, 3171, 3191, 3213, 8770, 10721, 3173, 3192, 3215, 8771, 10849, 3174, 3193, 3216, 8772, 10850, 3175, 3195, 7422, 8773, 10851)) AND (price_index.store_id = 1) ORDER BY `cat_index`.`position` ASC
LIMIT 24