- how to select rows from two tables and one and group them
- news_table:
- id,title,category,date;
- 1,hello,2,2012
- categories_table:
- id,category,parent
- 1,news,0
- cat:news
- title date
- title 2 date
- title 3 date
- cat:general
- title date
- title2 date
- select * from news_table left join categories_table on news_table.category = categories_table.id where .....