Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sql = $sql = 'select `scores`.`image`, sum(`scores`.`score`) as `total_score` from `scores`
- group by `scores`.`fb_user_id`
- having count(`scores`.`tour`) = 3
- order by `total_score`
- limit 10';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement