You have a lot of data in your table and you want to fetch data for specific ids. Here is mysql query to fetch data for specific ids
$selectrow = mysql_query("SELECT * FROM testimonial WHERE status='active' AND id IN(6,11,8)");
You can change the ids inside IN(3,6,10) according to your need. Comment us below to tell that it is working for you or not. It’s working for me.