This is my query... SELECT * FROM comments WHERE content_id in (525, 537) LIMIT 60
This is the SS of result:
here content_id
= 537
is selected 5 times.
(comment_id
is UNIQUE key )..
My question is: How to limit selected rows by 2, where values of content_id
is same...
Maximum two duplicate records for each content_id
... like in this picture: