Hi !
I have this huge huge table with about 1,306,129 rows. Im trying to get query results faster as I can so I came up with the idea that selecting a fields using DISTINCT() would improve the speed, and so it did, when i run the query on phpmyadmin it returns considerably faster (only distints duu) than usual query.
So the problem comes when I try to use the same query on PHP , it is just not working
what im executing is
on phpmyadmin : SELECT DISTINCT(field),field2,field3 FROM table WHERE field2='x'
and this returns 11 results
on PHP: mysql_query("SELECT DISTINCT(field),field2,field3 FROM table WHERE field2='x'");
and this returns 2040 results
Anyone has an idea whats happening ??