db_select
次のクエリに相当するクエリは何でしょうか。
$nids = array(5, 3, 1, 4, 2);
$sql = "SELECT
nid, title, FIELD(nid, :nids) sortkey
FROM
{node}
WHERE
nid IN (:nids)
AND type = :type
AND status = 1
ORDER BY sortkey";
$result_nid = db_query($sql, array(':nids' => $nids, ':type' => 'article'))
->fetchAll();