I have a table called "articles" on the database
articles :
id +++ writer_id +++ title ++++ text
----------------------------------------------------
1 1 some title article for writer 1
2 1 some title article for writer 1
3 2 some title article for writer 2
4 2 some title article for writer 2
5 2 some title article for writer 2
6 3 some title article for writer 3
I need a query to get the latest articles from the table BUT just ONE article for each Writer
depends on the rows above the query should get just 3 rows : each article owns by ONE writer
2 1 some title article for writer 1
5 2 some title article for writer 2
6 3 some title article for writer 3
php
SELECT *
FROM articles
WHERE writer_id = ???? ;
order by id desc limit 10
thanks in advance : )