This query fails in mysql 4 but works in mysql 5. What can I do so that this query will work in mysql 4.
SELECT uid as backup_uid, ufname as backup_ufname,ulname as backup_ulname from users where uid in ('$backup_user1_arr[$i]','$backup_user2_arr[$i]','$backup_user3_arr[$i]','$backup_user4_arr[$i]','$backup_user5_arr[$i]') ORDER BY FIELD (uid,'$backup_user1_arr[$i]','$backup_user2_arr[$i]','$backup_user3_arr[$i]','$backup_user4_arr[$i]','$backup_user5_arr[$i]');
|