i have two tables selected, but i need one more.. and im having some issues... heres what i have for my 2.
SELECT ims.u_id, ims.code, ims.PhotoShare,
ims.photo_album, ims.is_approved,
ims.albumprefs_on, ims.albumprefs_privacy,
ims_image.title, ims_image.views,
ims_image.size, ims_image.i_id, ims_image.ext
FROM ims
JOIN ims_image
ON ims_image.u_id = ims.u_id
WHERE ims.PhotoShare='Y'
AND ims.photo_album='yes'
AND ims.is_approved='yes'
AND ims.albumprefs_on='yes'
AND ims.albumprefs_privacy='public'
ORDER BY rand()
LIMIT 10
my third one is called ims_folders and i need to pull the data in it called 'in_album'