I have read a few threads regarding the mysql's distinct, and it seems to have some problems when used by PHP.
None the less, I am having a problem with distinct. I have a table like this:
field1 - field2
1 - 1
2 - 1
1 - 2
2 - 2
If i select all of the field2 i will return:
1
1
2
2
But i only want a distinct field 2, so it would return
1
2
But this isnt working. Here is my query
SELECT distinct(field2) FROM table
Note: i tried it also without the brackets.
Any ideas, comments?