Can't access product section

In my admin panel I can not access the products…

I can get to categories but when i click on products to edit, delete, add, i get this:

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 ‘/tmp/#sql_26cc_0’ at line 1 (1064)

with a whole bunch of mess ater it.

Please Help.