I have a set of rows (it is actually filtered and ordered mysql table).
I also have a set of integer numbers like (5,9,12,67,2,3) which I want to use as row numbers.
Question: What is better way to fetch rows from this set using these numbers?
Example: I have a set 15 rows. And numbers (1,5,7). How I can get 1st,5th and 7th rows?