Hallo Schtorsch,
"Letzte Bilder" kenn ich nicht, gibt es nicht in 4images. Höchstens "Neue Bilder".
Folgender code aus meiner 1.7.5 galerie.:
index.php
$num_new_images = $config['image_cells'];
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
FROM (".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
WHERE i.image_active = 1
AND i.cat_id NOT IN (1,2,3,4,5)
AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")
ORDER BY i.image_date DESC
LIMIT $num_new_images";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);
Für dich nur als Anschauung. Wichtig hier zum Ausfiltern bestimmter cats:
AND i.cat_id NOT IN (1,2,3,4,5)
Gruß
Kurt