If your menu link can be altered by PHP code... a simple SQL statement like this will give you the pid you want:
Execute the SQL and g...
Code: [Select]
SELECT `pid` FROM `cpg_pictures` ORDER BY `pid` LIMIT 1
(use your defined CPG table prefix of course...)Execute the SQL and g...