I have a query that scans various columns for a search field
SELECT *
FROM $sql_word_query[$count]
WHERE word=\"$word_to_check\"
OR plural=\"$word_to_check\"
OR present_tense=\"$word_to_check\"
OR past_tense=\"$word_to_check\"
OR present_participle=\"$word_to_check\"
OR past_participle=\"$word_to_check\"
The $count is taking a table name from an array.
This is very slow and when I added the last OR part I now get
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/englishw/public_html/app/word.php on line 159
Is there a more efficient way for this scan?