I am trying to write a query that will return rows that have two matching fields.
|-------------|-------------|----------|
| id | field 1 | field 2 |
|-------------|-------------|----------|
| 1. | a | z | #
|-------------|-------------|----------|
| 2. | b | x |
|-------------|-------------|----------|
| 3. | c | y | ##
|-------------|-------------|----------|
| 4. | a | z | #
|-------------|-------------|----------|
| 5. | b | z |
|-------------|-------------|----------|
| 6. | c | y | ##
|-------------|-------------|----------|
The rows marked above would be returned from such a query. They are essentially duplicates. I tried inner joining the table on itself where field 1 = field 1 and field 2 = field 2, to no avail. Can this be done without writing a PHP script with multiple queries?