Invalid query: select * from archive_table12 WHERE (field6 LIKE '1%' OR field6 LIKE '2%' OR field6 LIKE '3%' OR field6 LIKE '4%' OR field6 LIKE '5%' OR field6 LIKE '6%' OR field6 LIKE '7%' OR field6 LIKE '8%' OR field6 LIKE '9%' OR field6 LIKE '0%') AND () order by field84, field6
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') order by field84, field6' at line 1