Any idea why Im getting a syntax error on cGrantCreate
if(Viewdata[4][f] == 'true'):
# The line below gives me a syntax error, all values Im adding are valid and print separately
cGrantCreate = "grant insert on "+data[1][d]+"."+data[2][d]+"."+data[3][d]" to " + data[0][d]
cur.execute(cGrantCreate)
con.commit()