SELECT 'publicaciones'||publicaciones.itembuilder.getPath(i.pii, i.estado) || '/' || ii.idioma|| '/' ||d.fichero as PDF,ii.idioma FROM publicaciones.item i, publicaciones.item_idioma ii, publicaciones.documento d WHERE i.id = ii.id_item AND ii.idioma_defecto = 1 and ii.id = d.id_item_idioma and i.pii LIKE 'S225555361300116X' and i.estado like 'S300'array(4) { [0]=> string(101) "publicaciones/22555536/0000008900000006/v5_201503221155/S225555361300116X/v5_201503221155/en/main.pdf" ["PDF"]=> string(101) "publicaciones/22555536/0000008900000006/v5_201503221155/S225555361300116X/v5_201503221155/en/main.pdf" [1]=> string(2) "en" ["IDIOMA"]=> string(2) "en" } FPDF error: Some data has already been output, can't send PDF file