You might simply have too many apostrophes in the query. Try this.
Code:
SELECT * FROM Table2 WHERE eid='123'
If that's not the problem, then check your code to ensure that your problem isn't a typo or improper case in referencing a field, table or cell name.
W3Scools has some great tutes and examples you can use to build your
SQL SELECT Statement.
Enjoy!