I need to create a query that get me only the last 3 posts from each user.
i have this query:
SELECT p.*
FROM post AS p
INNER JOIN customer AS c ON c.id = p.customer
ORDER BY p.created DESC
But that will have me all the posts. I need a set that contain only the lates 3 posts from each user not more.