Hvis du vil fjerne dubletter fra de to felter, så rug group by: SELECT pics.picture_id, pics.profile_id, pics.pic, pics.pic_description, userprofile.sex FROM pics, userprofile GROUP BY pics.picture_id, pics.pic ORDER BY uploaded DESC LIMIT 0, 50
Hvis du vil bruge distinct:
SELECT DISTINCT pics.picture_id, pics.profile_id, pics.pic, pics.pic_description, userprofile.sex FROM pics, userprofile ORDER BY uploaded DESC LIMIT 0, 50
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.