The structure of table goes as bellow
Posts (
   id int, 
   category_id int, 
   popularity int, 
)
I wanna select 5 categories each having 5 rows.
Like Select * from posts where category_id in ("1" , "2" , "3" , "4" , "5") limit 5 -- limit each category_id by selection of 5