> > for ahost,target in my_map: > cursor.execute("""SELECT %s FROM targets > WHERE target_name in (%s) """ % (ahost, ",".join(target))) > Hi again, I'm confused :-( I'm using an old version of python (2.3.4). In my database, target_name is the name of a column, not the name of a target. Patty