There are 3 tables:
1 клиент 2 продукт 3 заказ
Customer
id name
Product
id productname
Order
id clientId prdouctId
Let the contents of the client table
1 Валера 2 Маша 3 Валера
Product
1 Хлеб 2 Соль
Order
1 1 1 (1 Валера Хлеб) 2 1 2 (2 Валера Соль) 3 2 2 (2 Маша Соль) 4 3 1 (2 Валера Соль)
How can I display all products from clientId = 1? For example, to be | Valera | Bread | Salt?