<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span><font size="2"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"> $result = db_select('taxonomy_term_data', 't');</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"> $result->addField('t', 'tid');</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"> $result->condition('t.vid', $vids, 'IN')</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color:
rgb(208, 208, 208);"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"> ->condition(db_or()->condition('t.description', "%$keys%", 'LIKE')->condition('t.name', "%$keys%", 'LIKE'))</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"> ;</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"> $result->execute();</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"><br style="font-family: Courier
New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"> $found = NULL;</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"> foreach ($result as $row) {</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"> $output .= print_r($row, true);</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: rgb(208, 208, 208);"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;
background-color: rgb(208, 208, 208);"> }</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"></font>The Devel query log shows the query properly built. I copied the query from the log into PhpMyAdmin and it gets one row. But my code shows nothing fetched.</span></div><div> </div><div><font face="bookman old style, new york, times, serif" size="4" color="#ff007f"><font style="color:rgb(0, 0, 0);" size="2"><span style="font-family:arial, helvetica, sans-serif;"></span></font></font><font face="bookman old style, new york, times, serif" size="4" color="#ff007f"><i><b>Nancy</b></i></font></div><br></div></body></html>