- SELECT s.`shop_properties_items_value`, s.`shop_items_catalog_item_id`, s_backjoin.`shop_properties_items_value`
- FROM shop_properties_items_table s
-
- LEFT JOIN shop_items_catalog_table si
- ON si.shop_items_catalog_item_id=s.shop_items_catalog_item_id
-
- INNER JOIN shop_properties_items_table s_backjoin
- ON s_backjoin.shop_items_catalog_item_id=si.shop_items_catalog_item_id
- AND s_backjoin.shop_list_of_properties_id=36 AND s_backjoin.`shop_properties_items_value` = 527
-
- INNER JOIN shop_list_of_properties_table sl
- ON sl.shop_list_of_properties_id=s_backjoin.shop_list_of_properties_id
- AND sl.lists_id = 28
-
- GROUP BY s.`shop_properties_items_value`
|