SELECT
`t1`.`id`, `t1`.`filename`, `t1`.`filegrade_id`, `t1`.`percent_id`, `t2`.`process`
FROM `proposal_files` AS `t1`
JOIN `prop_file_processes` AS `t2` ON ( `t1`.`process` = `t2`.`id`)
INNER JOIN
(
SELECT a.filegrade_id, a.file_id, a.score, a.submit_date
FROM `file_grade_answers` AS a
LEFT JOIN `file_grade_answers` AS b ON ( (
a.file_id
) = ( b.file_id )
AND a.submit_date < b.submit_date )
WHERE b.submit_date IS NULL
) AS t3 on ( t1.filegrade_id = t3.filegrade_id )
WHERE `t1`.`propid` = '209'
ORDER BY t1.filename ASC
Untested -- that's the idea.