query = "INSERT INTO vcdata.vc_staging "
query += "(Offer_UOID, Offer_pgURL, Offer_URL, Product_Brand, Date_Identification, "
query += "Date_Publication, Product_Category, Product_Title, Offer_Id, "
query += "Seller_name, Seller_id, Seller_country, Seller_type, Price_ResaleEUR, "
query += "Price_ResaleUSD, Product_Material, Product_Color, Product_Condition, "
query += "Product_Dimension, Product_Width, Product_Height, Product_Depth, Wish_hits, "
query += "Seller_Comments, Seller_Account, Seller_Count_of_Followers, Seller_Count_of_Following, "
query += "Offer_Likes, Date_Sold, Buyer_Id, Price_Declared_EUR, Buyer_Name, Buyer_Account, "
query += "Buyer_Country, Buyer_Type, Offer_Visibility, Offer_Status, Domain, Price_EstRetail, "
query += "Product_SN, SN_comments, Product_Condition2, Offer_View_Hits, Offer_Cart_Hits, Date_Release, "
query += "Price_Local, Currency, Seller_Address, Seller_Facebook, Product_Length, Price_Declared_Local) "
query += "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, "
query += "?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, "
query += "?, ?, ?, ?, ?) "
query += "ON DUPLICATE KEY UPDATE SET Date_Last_Modified='%s', Offer_Visibility ='%s', "
query += "Date_Release='%s'"
ERROR:[SQL Server]Incorrect syntax near the keyword 'ON'. (156)