我有如下查询:
$query = 'select mcf.*, mc.*, o.*, u.*
from MyConstructionFile mcf
inner join mcf.MyConstruction mc
inner join mc.MyConstructionUser o and o.is_owner = true
inner join o.User u
where mcf.id in ('.implode(',', $ids).')';
我需要结果的顺序与数组中的顺序完全相同,$ids
但我得到的结果是按 ID 排序的,我该怎么做?