Browse code
Fixing the "get before date" function
fiddlerwoaroof authored on 18/10/2015 20:55:52
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -46,6 +46,7 @@ BEGIN |
46 | 46 |
links.url,links.title,links.posted,users1.name,total_votes(links.id),user_vote(subscriber_id,links.id) |
47 | 47 |
FROM user_subscriptions |
48 | 48 |
RIGHT JOIN user_links ON user_subscriptions.to_id=user_links.user_id |
49 |
+ INNER JOIN links ON link_id=links.id |
|
49 | 50 |
INNER JOIN users ON users.id=fro_id |
50 | 51 |
LEFT JOIN users as users1 ON users1.id=to_id |
51 | 52 |
WHERE fro_id = subscriber_id |