I have this table:
id feed_id ...
Let\'s say that I have 500 rows and I want to select 3 entries for each feed_id? And 50 as total limit.>
Have you tried using a subselect and limit?
Something like
SELECT * FROM Table t WHERE ID IN (SELECT ID FROM @Table WHERE FEED_ID = t.FEED_ID LIMIT 3) LIMIT 500