in reply to SQL through perl is giving error

Please show the statement, as in print "$inventoryUpdate$statement\n" or print "$inventoryInsert$statement\n" (whichever is failing).