whereCondition.append(" WHERE ");
for (int i = 0; i < tags.length; i++) {
if (i != 0) {
whereCondition.append(" AND ");
}
<BUG>whereCondition.append("(" + KEY_CONTENT + " LIKE '%").append(tags[i]).append("%' OR ").append(KEY_TITLE)

.append(" LIKE '%").append(tags[i]).append("%')");
</BUG>
}

whereCondition.append(" WHERE ");
for (int i = 0; i < tags.length; i++) {
if (i != 0) {
whereCondition.append(" AND ");
}
whereCondition.append("(" + KEY_CONTENT + " REGEXP '.*").append(tags[i]).append("(\\s.*)*$' OR ").append(KEY_TITLE)
.append(" REGEXP '.*").append(tags[i]).append("(\\s.*)*$')");
}
