SELECT DISTINCT field1, field2, field3, ...... FROM table
I am trying to accomplish the following sql statement but I want it to return all colum
Try
SELECT table.* FROM table WHERE otherField = 'otherValue' GROUP BY table.fieldWantedToBeDistinct limit x