It looks like your sql statement has some COUNT in it. Check that your sql statement is indeed what you show in the code (e.g. if you had COUNT and then edit the file, make sure it is saved).
Also your print statement will yield list of tuples or something like this (e.g. dict depending on settings/options) and no column names. i.e. the output shown is not exact output from the code and possibly you have extra code.
Also your print statement will yield list of tuples or something like this (e.g. dict depending on settings/options) and no column names. i.e. the output shown is not exact output from the code and possibly you have extra code.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs