q:select id docid, bin, type, dateiname, endung, intern from dateien where id='1522.pdf' or oname='1522.pdf' order by id desc limit 1