I'm a newbie in MySQL. I use it only for PHP.

I tried to upgrade myphpadmin After doing that, I couldn't access my database and got the following error:

#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.

Can anyone help me?

  • 1
    Ok.. Can you post complete MySQl query? You can refer a similar question on: goo.gl/7ch9L
    – sam
    Commented May 2, 2013 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
    – Uchsun
    Commented May 3, 2013 at 0:25
  • 1
    could you please check this: FROM.WHERE in the query.
    – Sathish D
    Commented May 3, 2013 at 10:28

1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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