Originally posted by lucasrd
did you try GROUP BY vmplay_videos.artistid
Yea I did, and got the same error
Originally posted by Installer
Is artistid the only column you're selecting?
No, this is the full query.
SELECT vmplay_videos.id,
vmplay_videos.artistid,
vmplay_artists.website,
vmplay_artists.smallerpic1,
vmplay_artists.smallerpic2,
vmplay_artists.artistfirst,
vmplay_artists.artistlast,
vmplay_videos.songname
FROM vmplay_artists, vmplay_videos
WHERE vmplay_artists.id = vmplay_videos.artistid
and
videoactive = 'yes'
and
indepic = 'yes'
ORDER BY RAND( NOW( ) )
LIMIT $max