remove invalid join

This commit is contained in:
Sam 2014-08-04 16:55:16 +10:00
parent 03c8f09be8
commit 0ccb8e17cb

View File

@ -91,7 +91,6 @@ SQL
( (
SELECT i.user_id, MIN(i.id) i_id SELECT i.user_id, MIN(i.id) i_id
FROM incoming_links i FROM incoming_links i
JOIN topics t on t.id = i.topic_id
JOIN badge_posts p on p.id = i.post_id JOIN badge_posts p on p.id = i.post_id
WHERE i.user_id IS NOT NULL WHERE i.user_id IS NOT NULL
GROUP BY i.user_id GROUP BY i.user_id