If i perform a standard query in SQLite:
SELECT * FROM my_table
I get all records in my table as expected. If i perform following query:
count(*) is an aggregate function. Aggregate functions need to be grouped for a meaningful results. You can read: count columns group by