execute_sql, unexpected result
There must be a problem with the query as written. Peewee doesn't do anything to SQL queries passed directly to execute_sql() -- they are passed to the driver, which then executes them. I'd suggest working on the query in the database shell until you get the desired results. You are right, I will keep working in the query, since it seems to work with DB browser, but not in sqlite3 in terminal. 
The problem was simple quotation marks, it has to be double to escape names. 


Hi, 
While I was trying to perform a cleaning operation in a database, specifically removing the duplicates in a SQLite database.
Using a piece of code similar to this:
```python
db.execute_sql("DELETE FROM tableName WHERE rowid NOT IN (SELECT MIN(rowid) FROM tableName GROUP BY 'column1','column2','column3')")
```
The result is a complete delete of all entries in the database but the first one. It seems that execute_sql is not performing the grouping. 
If I run exactly the same query in the database with sqlite via terminal the result is the expected one. All the duplicated records are removed. 
I am doing something wrong or is there a bug?

