Answer the question
In order to leave comments, you need to log in
Why doesn't DISTINCT work?
I have a sql query
SELECT * FROM video_category INNER JOIN category ON category.id = video_category.category_id INNER JOIN video ON video.id = video_category.video_id WHERE video_category.category_id = :id ORDER BY video_category.video_id DESC
SELECT DISTINCT * FROM video_category INNER JOIN category ON category.id = video_category.category_id INNER JOIN video ON video.id = video_category.video_id WHERE video_category.category_id = :id ORDER BY video_category.video_id DESC
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question