Im sure this question has been beaten to death. But the answer(s) that came up under the search (29 pages) did not want to work for me.
SELECT DISTINCT swr_gallery.gid, swr_gallery.rid, swr_gallery.mid, swr_model.name
FROM swr_gallery
INNER JOIN swr_model ON swr_gallery.mid = swr_model.mid
That is my query. "swr_gallery.mid" contains my duplicate IDs. Everytime another comes up i just want to drop that row. any ideas?