I may be missing something obvious, but I can\'t figure out how my code is different from various examples I see in the online documentation for MySQLdb.
I\'m fairly
You cannot use DB-API for metadata; you will need to make replacements yourself outside of the execute() call.
execute()
query = 'SELECT MAX(%%s) FROM `%s`' % (table,) cursor.execute(query, (countcol,))
Obviously you should not do this if table comes from an outside source.
table