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