I have this string
q="""insert into genres (movieid,%(genre_name)s) values (%(movieid)i,1)""" % {'genre_name': t2, 'movieid': movieid}
but the result of print q is
) values (1,1)nres (movieid,adventure
instead of
insert into genres (movieid,adventure) values (1,1)
why?