MySQL Query ( SELECT `folder`, `filename` FROM `zp_images`, `zp_albums` WHERE `zp_albums`.folder!="" AND `zp_images`.albumid = `zp_albums`.id AND `zp_albums`.id in (17, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52) AND `zp_images`.show=1ORDER BY RAND() ) failed. MySQL returned the error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BY RAND()' at line 1