$keywords = join "|", @keywords; $sql_stmt .= "AND ( PlantDescription REGEXP \"$keywords\" )";