You're probably calling the wrong function in your Python database API, one which always includes a SQL `WHICH` clause, but you want to have no `WHICH` clause at all. You really need to post some of your code to get more specific advice.
You're probably calling the wrong function in your Python database API, one which always includes a SQL `WHICH` clause, but you want to have no `WHICH` clause at all. You really need to post some of your code to get more specific advice.