I am creating a form that searches the FAQ with the search term typed and the taxonommy term selected, i.e., the form will contain a search field and a select list of taxonomy terms associated with the FAQ. So I needed a sql query to achieve this. I need some modifications on this
db_query("SELECT question, nid
FROM {faq_questions}
WHERE question LIKE :term
ORDER BY question asc", array(':term' => '%%' . $term . '%%'));
so that taxonomy term associated with question is also searched. The above code just searches FAQ with keyword only, not combined with taxonomy term selected