Aparantemente algo así funciona
Cita: select f.*,h.userid as fuser from files_prj3 f left join history_prj3 h on f.id = h.fileid group by f.id
Al menos trae el resultado que necesito, y siendo h.id una key parece estar correctamente ordenado.
Se les ocurre algo mejor y más seguro?