select * from tx_fsndptproductgroups_domain_model_generalproperty where uid in( select uid_foreign from tx_fsndptproductgroups_product_generalproperty_mm mm where mm.uid_local = 207 order by mm.sorting ) and deleted = 0 order by sorting