Advertisement
peterurfi

Untitled

Jan 8th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.30 KB | None | 0 0
  1. SELECT imgu_albums.id, imgu_albums.timestamp, imgu_albums.name ,
  2. LEFT (imgu_albums.description, 50) as description ,
  3. COUNT(imgu_images.id) as image_count
  4. FROM imgu_albums
  5. LEFT JOIN imgu_images ON imgu_albums.id = imgu_images.id
  6. WHERE imgu_albums.user_id = {$_SESSION['user_id']}
  7. GROUP BY imgu_albums.id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement