Getting products with desired attributes
问题 I have a category with products and a set of attributes. Those attributes are "Shape" and "Diameter". When I open a category without applying filters I get products with following query: "SELECT * FROM `products` WHERE `category_id` IN ('6', '7', '29', '8', '9', '36')" Then I click on attribute "Diameter"(id = 2) with value "8mm"(id = 4) I generate the following query: "SELECT * FROM `products` JOIN `products_attributes_values` ON (`products_attributes_values`.`product_id` = `products`.`id`)