Could not select from Search Table

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 'WHERE (Site_ID = '') ORDER BY Site_ID, ID' at line 1