SELECT * FROM posts GROUP BY year