ho sbagliato , il problema non è limitare la query o farmi restituire il primo valore !!
scusatemi allora proverò a spiegarmi meglio
riscrivo la query
Codice PHP:
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=1274 OR recipient_id=1274
or (sender_id IN (select friend_id from bx_spy_friends_data where sender_id=1274)) or (recipient_id IN
(select friend_id from bx_spy_friends_data where sender_id=1274)))
ORDER BY bx_spy_data.id DESC LIMIT 0,30
so per certo che tutte le condizioni qui sopra elencate si verificano sempre , però potrebbe accadere che tutte le tabelle sviluppino dati eccetto bx_photos_main che qualche volta potrebbe essere vuota
attualmente a me interessa che prende SEMPRE i dati dalle tabelle ANCHE SE bx_photos_main è VUOTA .. invece no non fa cosi , per svilupparmi dati lui mysql controlla che
bx_spy_data - bx_photos_main - Profiles
abbiano tutti l'id 1274 (cioè la condizione)
invece io vorrei qualcosa che sviluppa dati in ogni caso , quindi risultati
se bx_photos_main è vuota , non c'è corrispondenza , cmq mi va vedere lo stesso i risultati di
bx_spy_data - Profiles
spero di essermi spiegato