If you upload an image which has the same words in title, description and keywords you can get a "DB Error: Bad SQL Query: INSERT INTO 4images_wordmatch (image_id, ..." message.
To fix this:
in includes/search_utils.php
FIND:
array_walk($split_words, 'trim_value');
and REPLACE WITH:
$split_words = array_map('trim', $split_words);
$split_words = array_map('strip_tags', $split_words);
$split_words = array_map('convert_special', $split_words);
$split_words = array_map('strtolower', $split_words);