I need to create a custom sql string due because I need to split phrases into words(via explode function) and use LIKE-OR for each words.
the query is something like this:
$query = "the select statement";
$where = "the where statement";
if (!empty(table->field) $where .= 'where statement';
if (!empty(table->field1) $where .= 'additional where statement';
Are there some available Yii functions for pure string queries or do I have to use third party functions for sql injection?