I've never been good with complex queries (not that this is a complex one). I have three tables:
Order
Order_product
Product
Each product has manufacturer_id. There can be more than one product in one order (that's why there is a cross table 'Order_product'). The products in a single order can have different manufacturer ids.
I need to select all orders where there is at least one product from the currently logged manufacturer (I have his id).
Hope I have explained my problem clear enough. If you need more info ask me. Cheers !


