Salve a tutti
nella query mysql ho unito due tabelle con inner join

SELECT bx_spy_data.*, Profiles.ID, Profiles.Avatar, bx_photos_main.Owner, bx_photos_main.Title, bx_photos_main.Desc, bx_photos_main.Hash, bx_photos_main.Ext , bx_photos_main.ID

FROM bx_spy_data

INNER JOIN Profiles ON bx_spy_data.sender_id = Profiles.ID

INNER JOIN bx_photos_main ON bx_spy_data.sender_id = bx_photos_main.Owner

WHERE ( sender_id=$mioid OR recipient_id=$mioid
or (sender_id IN (select friend_id from bx_spy_friends_data where sender_id=$mioid)) or (recipient_id IN
(select friend_id from bx_spy_friends_data where sender_id=$mioid)))

ORDER BY bx_spy_data.id DESC LIMIT 0,30

il problema e che della tabella BX_PHOTOS_MAIN.ID vorrei visualizzare solo L'ULTIMO ID , delle altre va bene il limite 0,30 , ma di BX_PHOTOS_MAIN solo l'ultimo..


sapete se è possibile ?