SELECT * FROM images WHERE img_desc NOT IN ('') AND keyword_1 NOT IN ('') AND keyword_2 NOT IN ('') AND keyword_3 NOT IN ('') AND keyword_4 NOT IN ('') ORDER BY RAND() LIMIT 1SELECT * FROM images WHERE img_desc NOT IN ('') AND keyword_1 NOT IN ('') AND keyword_2 NOT IN ('') AND keyword_3 NOT IN ('') AND keyword_4 NOT IN ('') ORDER BY RAND() LIMIT 1

Array ( [0] => clock [1] => dial [2] => time [3] => alarm )

1. CLOCK=>clock dial time alarm
SELECT * FROM images WHERE img_desc NOT IN ('CLOCK') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm') ORDER BY RAND() LIMIT 1SELECT * FROM images WHERE img_desc NOT IN ('CLOCK') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm') ORDER BY RAND() LIMIT 1

Array ( [0] => clock [1] => dial [2] => time [3] => alarm [4] => Money [5] => Cash [6] => Coins [7] => Bills )

2. MONEY=>Money Cash Coins Bills
SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills') ORDER BY RAND() LIMIT 1SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills') ORDER BY RAND() LIMIT 1

Array ( [0] => clock [1] => dial [2] => time [3] => alarm [4] => Money [5] => Cash [6] => Coins [7] => Bills [8] => city [9] => buildings [10] => building [11] => feet )

3. PERCHED OVER THE CITY=>city buildings building feet
SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet') ORDER BY RAND() LIMIT 1SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet') ORDER BY RAND() LIMIT 1

Array ( [0] => clock [1] => dial [2] => time [3] => alarm [4] => Money [5] => Cash [6] => Coins [7] => Bills [8] => city [9] => buildings [10] => building [11] => feet [12] => animals [13] => koala [14] => bear [15] => bears )

4. KOALA BEARS=>animals koala bear bears
SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears') ORDER BY RAND() LIMIT 1SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears') ORDER BY RAND() LIMIT 1

Array ( [0] => clock [1] => dial [2] => time [3] => alarm [4] => Money [5] => Cash [6] => Coins [7] => Bills [8] => city [9] => buildings [10] => building [11] => feet [12] => animals [13] => koala [14] => bear [15] => bears [16] => diving board [17] => diving [18] => pool [19] => water )

5. DIVING BOARD=>diving board diving pool water
SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS', 'DIVING BOARD') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water') ORDER BY RAND() LIMIT 1SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS', 'DIVING BOARD') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water') ORDER BY RAND() LIMIT 1

Array ( [0] => clock [1] => dial [2] => time [3] => alarm [4] => Money [5] => Cash [6] => Coins [7] => Bills [8] => city [9] => buildings [10] => building [11] => feet [12] => animals [13] => koala [14] => bear [15] => bears [16] => diving board [17] => diving [18] => pool [19] => water [20] => stove [21] => kitchen [22] => household [23] => gas )

6. GAS STOVE=>stove kitchen household gas
SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS', 'DIVING BOARD', 'GAS STOVE') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas') ORDER BY RAND() LIMIT 1SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS', 'DIVING BOARD', 'GAS STOVE') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas') ORDER BY RAND() LIMIT 1

Array ( [0] => clock [1] => dial [2] => time [3] => alarm [4] => Money [5] => Cash [6] => Coins [7] => Bills [8] => city [9] => buildings [10] => building [11] => feet [12] => animals [13] => koala [14] => bear [15] => bears [16] => diving board [17] => diving [18] => pool [19] => water [20] => stove [21] => kitchen [22] => household [23] => gas [24] => Mail [25] => Envelope [26] => Pencil [27] => Paper )

7. ENVELOPES=>Mail Envelope Pencil Paper
SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS', 'DIVING BOARD', 'GAS STOVE', 'ENVELOPES') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper') ORDER BY RAND() LIMIT 1SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS', 'DIVING BOARD', 'GAS STOVE', 'ENVELOPES') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper') ORDER BY RAND() LIMIT 1

Array ( [0] => clock [1] => dial [2] => time [3] => alarm [4] => Money [5] => Cash [6] => Coins [7] => Bills [8] => city [9] => buildings [10] => building [11] => feet [12] => animals [13] => koala [14] => bear [15] => bears [16] => diving board [17] => diving [18] => pool [19] => water [20] => stove [21] => kitchen [22] => household [23] => gas [24] => Mail [25] => Envelope [26] => Pencil [27] => Paper [28] => santa [29] => christmas [30] => holiday [31] => christ )

8. SANTA CLAUS=>santa christmas holiday christ
SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS', 'DIVING BOARD', 'GAS STOVE', 'ENVELOPES', 'SANTA CLAUS') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ') ORDER BY RAND() LIMIT 1SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS', 'DIVING BOARD', 'GAS STOVE', 'ENVELOPES', 'SANTA CLAUS') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ') ORDER BY RAND() LIMIT 1

Array ( [0] => clock [1] => dial [2] => time [3] => alarm [4] => Money [5] => Cash [6] => Coins [7] => Bills [8] => city [9] => buildings [10] => building [11] => feet [12] => animals [13] => koala [14] => bear [15] => bears [16] => diving board [17] => diving [18] => pool [19] => water [20] => stove [21] => kitchen [22] => household [23] => gas [24] => Mail [25] => Envelope [26] => Pencil [27] => Paper [28] => santa [29] => christmas [30] => holiday [31] => christ [32] => woman [33] => horse [34] => human [35] => animal )

9. WOMAN WITH HORSE=>woman horse human animal
SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS', 'DIVING BOARD', 'GAS STOVE', 'ENVELOPES', 'SANTA CLAUS', 'WOMAN WITH HORSE') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ', 'woman', 'horse', 'human', 'animal') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ', 'woman', 'horse', 'human', 'animal') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ', 'woman', 'horse', 'human', 'animal') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ', 'woman', 'horse', 'human', 'animal') ORDER BY RAND() LIMIT 1SELECT * FROM images WHERE img_desc NOT IN ('CLOCK', 'MONEY', 'PERCHED OVER THE CITY', 'KOALA BEARS', 'DIVING BOARD', 'GAS STOVE', 'ENVELOPES', 'SANTA CLAUS', 'WOMAN WITH HORSE') AND keyword_1 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ', 'woman', 'horse', 'human', 'animal') AND keyword_2 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ', 'woman', 'horse', 'human', 'animal') AND keyword_3 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ', 'woman', 'horse', 'human', 'animal') AND keyword_4 NOT IN ('clock', 'dial', 'time', 'alarm', 'Money', 'Cash', 'Coins', 'Bills', 'city', 'buildings', 'building', 'feet', 'animals', 'koala', 'bear', 'bears', 'diving board', 'diving', 'pool', 'water', 'stove', 'kitchen', 'household', 'gas', 'Mail', 'Envelope', 'Pencil', 'Paper', 'santa', 'christmas', 'holiday', 'christ', 'woman', 'horse', 'human', 'animal') ORDER BY RAND() LIMIT 1

Array ( [0] => clock [1] => dial [2] => time [3] => alarm [4] => Money [5] => Cash [6] => Coins [7] => Bills [8] => city [9] => buildings [10] => building [11] => feet [12] => animals [13] => koala [14] => bear [15] => bears [16] => diving board [17] => diving [18] => pool [19] => water [20] => stove [21] => kitchen [22] => household [23] => gas [24] => Mail [25] => Envelope [26] => Pencil [27] => Paper [28] => santa [29] => christmas [30] => holiday [31] => christ [32] => woman [33] => horse [34] => human [35] => animal [36] => watermelon [37] => melon [38] => fruit [39] => food )

10. WATERMELON=>watermelon melon fruit food
?>