Okay, let's start over:
This does nothing.
for ($i = 0 ; $i > sizeof($array) ; $i++)
{
$searchQuery .= " \"%$array[$i]%\" " ;
}
Therefore your query would be
select imageindex, model, image, thumbimage, description, dim from images where keywords like "%%" order by model
which is valid, but returns all rows.
Using lesser than in the for loop is an improvement despite of the error message. This just means the query you create in the for loop is invalid (probably due to the quotes). To fix this, you'd probably want to build a valid query.
For debugging, I'd recommend to echo the $query and to print the mysql error e.g.
mysql_query($query) or die mysql_error();
and to post it here if you can't find what is wrong yourself.