Hello!
I have three tables!
news
id|title|text|test|qwer|trrr 1|test name|description|wer234|qqq 2|test nam2|description|wer234|qqq 3|test na3|description|wer234|qqq 4|test n4|description|wer234|qqq 5|test 5|description|wer234|qqq type
id|type 1|type1 2|type2 3|type3 4|type4 5|type5 newsandtyp
news_id|type_id 1|2 1|5 1|1 2|3 2|4 5|5 5|2 5|3 The newsandtype table is a many-to-many relationship, the news and type relationship is so, how can I correctly select records from the news table, given the type table? For example, I want to display:
1 test name description type2,type5,type1 wer234 2 test nam2 description type3,type4 wer234 5 test 5 description type5,type2,type3 wer234 display data from the news table + data from the type table only if there are links in the newsandtype table

INNER JOIN- Akina