<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);">&nbsp; $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);">&nbsp; $result-&gt;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);">&nbsp; $result-&gt;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);">&nbsp;&nbsp;&nbsp; -&gt;condition(db_or()-&gt;condition('t.description', "%$keys%", 'LIKE')-&gt;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);">&nbsp;&nbsp;&nbsp; ;</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);">&nbsp; $result-&gt;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);">&nbsp; $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);">&nbsp; 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);">&nbsp; &nbsp; $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);">&nbsp; }</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>&nbsp;</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>