$photoplog_file_infos = $db->query_read("SELECT * FROM photoplog_fileuploads WHERE moderate = 0 AND catid IN (2,5) ORDER BY RAND() LIMIT 5