SyntaxFix
Write A Post
Hire A Developer
Questions
Because you are joining two tables Invoices and InvoiceLineItems that both contain InvoiceID. change to Invoices.InvoiceID to make it correct.