Notice: Undefined index: invoiceid in C:\xampp\htdocs\WAKOLIMA\PICKING\getPDANotProcessedInvoiceLines.php on line 11

Notice: Undefined index: inventlocationid in C:\xampp\htdocs\WAKOLIMA\PICKING\getPDANotProcessedInvoiceLines.php on line 12

Notice: Undefined index: dataareaid in C:\xampp\htdocs\WAKOLIMA\PICKING\getPDANotProcessedInvoiceLines.php on line 13
Error in executing query.
Array ( [0] => Array ( [0] => 42000 [SQLSTATE] => 42000 [1] => 156 [code] => 156 [2] => [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near the keyword 'AND'. [message] => [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near the keyword 'AND'. ) )