$result = dbquery( "SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1 FROM ".DB_PREFIX."userphoto_albums ta ". "JOIN ".DB_PREFIX."userphotos USING (album_id) ORDER BY photo_views DESC LIMIT $rowstart,24".$settings['thumbs_per_page'] );