MySQL - How to optimize multiple OR conditions in a query on a large table
OR is hard to optimize, especially 1000 of them.
See if you can through the values in a table, then JOIN to that table.
Then provide EXPLAIN SELECT ....