Hi,
I can't figure the followign problem
I have 3 tables
media
Value :
"1", "2", "Test Title", "1,2,3"
Notice previews has 1,2,3 as value
users
Value :
"1", "admin"
"2", "user"
previews
"1", "file1.jpg"
"2", "file2.jpg"
"3", "file3.jpg"
Now I want to have the last 15 from media, with the correct userid and previews (filename).
I used IN
SELECT a.id, a.userid, a.title, a.previews, a.tags, a.views, a.added, b.uid, b.username, c.id AS previewid, c.filename FROM media a, mybb_users b, previews c WHERE a.userid=b.uid AND a.status='1' AND c.linkid IN ('a.previews') ORDER BY a.added DESC LIMIT 0,15
But his aint working, I got 1 result (the first).