I can't seem to get this query to work:
SELECT DISTINCT COUNT(*) from atable
I use PHP Data Objects (PDO) and when I prepare and execute this query, the resulting variable just equals "1". I can't use rowCount() because i'm using distinct. Removing distinct from the query makes no difference, it seems any count query just returns "1".