Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. "SELECT album.album_id, album.title, image.preview_path FROM `album` INNER JOIN
  2.                            (SELECT album_id, MAX(image_id) AS max_image_id FROM image GROUP BY album_id)
  3.                              max_images ON album.album_id = max_images.album_id JOIN image ON                    image.image_id=max_images.max_image_id"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement