select * from table where id in ("783"," 769"," 814"," 1577"," 1769") order by find_in_set( id, "783, 769, 814, 1577, 1769" )