Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- t.*
- FROM
- tweets AS t
- JOIN (
- SELECT
- tweet_id
- FROM
- tweets
- WHERE
- id = 11618
- ) AS o ON t.tweet_id = o.tweet_id
- AND t.id < if((SELECT MAX(ID) FROM tweets limit 1) = 11618, 11618 + 1, 11618)
- OR t.tweet_id < o.tweet_id
- ORDER BY
- t.tweet_id DESC,
- t.id DESC
- LIMIT
- 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement