SELECT product.* from product JOIN product_property AS product_property_size ON product.id = product_property_size.product_id AND product_property_size.key = 'size' // Would want to be able to do this one or more times for different properties JOIN product_property AS product_property_color ON product.id = product_property_color.product_id AND product_property_color.key = 'color' WHERE product_property_size.value = 'big' AND product_property_color.value = 'red'
It looks like you're new here. If you want to get involved, click one of these buttons!