SELECT 
    io.id, 
    io.ref, 
    io.issued
FROM invoiceOut io
WHERE io.id = ?