Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im Nubie in mysql, I use that only for PHP.

to the point, I try to upgrade myphpadmin, after I that, I cant accses my database and have error like This:

#1064 - 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 db_name = 'happy2'  AND table_name = 'foto'  ORDER BY version DESC' at line 1

My Other ALL DB have error like that.

Anyone can help me?

Im very Appreciated for your answer.

share|improve this question
Ok.. Can you post complete MySQl query? You can refer a similar question on: – sam May 2 '13 at 10:30
@user2045846 this my query: SELECT tracking_active FROM.WHERE db_name = 'happy2' AND table_name = 'listingfee' ORDER BY version DESC , Its no mistake with my OLD phpmyadmin, but after upgrade, the Error show after I Click on any table – Cromastone May 3 '13 at 0:25
could you please check this: FROM.WHERE in the query. – Sathish D May 3 '13 at 10:28

I had this problem as well, when downgrading phpMyAdmin. When I deleted my cookies, the problem went away.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.