I am trying to build a query from the db like:
select file_name,file_date from a left join b on a.id=b.id left join c on b.id=c.id where a.name=\'TOMMY\' and