Thread:Project:Support desk/How to use the OR operator in queries?/reply (4)

...And I apologize for a third reply, but if makeList CAN work within SpecialPages, then how would that look in a query, exactly? My query + the list look like this at present:

'''$conds1 = array($comp_tag_1 => $tag_get,      $comp_tag_2 => $tag_get,       $comp_tag_3 => $tag_get,       $comp_tag_4 => $tag_get,       $comp_tag_5 => $tag_get);

$conds_var1 = $this->makeList( $conds1, LIST_OR );

$dbr = wfGetDB(DB_SLAVE); $result = $dbr->select('blog_posts', array( 'post_id' ), array( 'type' => 'published', $comp_author => $author_get, ($conds_var1) ), __METHOD__, array( 'ORDER BY' => 'post_datetime ASC DESC LIMIT 6 $f_offet' ));'''

Aside from the fact that makeList isn't working right now, is that query even correct?