I had a strange problem in my news section, everytime I try to open (?op=admin_news) it gives the error :
Code: Select all
Can't execute select:
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 'ORDER BY created DESC LIMIT 0, 20'
The stranger thing is that my XFS script still works as usual with no errors or problems except the issue of news where I cannot add/edit news now .... users account, info,files, reports.... etc all that work and I can add new users ! .... if the database I created before and added previously to XFileConfig.pm is missing, how could the old accounts and information can still appear, beside there is no problem with creating new accounts,upload/download new files !... where all that information is saved then ! in localhost.sql !?
Recently I edited ( index_dl.cgi ) and ( .htaccess ), but I don't think it relating to myaql issue !
Would you please help and give me your opinions about what's going on in my script, and how can I recover my missing DB and fix the news error .