Possible Duplicate:
Ordering by the order of values in a SQL IN() clause
I know we can fetch all the rows in mysql in php by using the array as
$ids=array(14,23,2,41,33)
select * from table_name where id IN ($ids);
now the issue is that i want the rows to be fetched in the order of the elements i.e.
first the row with id 14 should be taken from row, then 23, then 2.. what currently fetches the data is in order -> first row with id 2, then with 14, then with 23 ....
and i "CANNOT" run a loop, cause the array is about 200 element long, cannot query the server with 200 at same instance. any ideas..?