SELECT CONCAT_WS('/', c.pdfsDir, vn.invoiceOut_getPath(#invoice)) FROM config c JOIN myInvoice i WHERE i.id = #invoice