Not sure what the error is with the query below?
select r.request_id, rr.request_result_id,r.date_submitted
from request_results rr
inner join requests r on rr.request_id = r.request_id
where ((rr.file_size IS NULL) or length(rr.results) = 0)
and r.date_submitted >= CURDATE()
order by r.request_id, rr.request_result_id request_results;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'request_results' at line 1
request_resultsfromORDER BYclause.