Author Topic: Two periodic errors on my site...  (Read 3650 times)

0 Members and 1 Guest are viewing this topic.

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Two periodic errors on my site...
« on: December 18, 2011, 07:32:57 AM »
Hi to all! This is my problem...

From time to time, i have hard server loads, after that two errors:

Bad SQL QuerySELECT *
              
FROM 5images_users
              WHERE user_id 

You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3


Bad SQL QueryDELETE FROM 5images_sessions
            WHERE session_id 
'95ec5bc07eb8ce7a2522d70ae76cc352' OR session_user_id 
You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2


What file need to observe?

Thanks!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Two periodic errors on my site...
« Reply #1 on: December 19, 2011, 01:03:32 PM »
These error come from includes/sessions.php

Are both these errors show at the same time?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: Two periodic errors on my site...
« Reply #2 on: December 19, 2011, 02:21:39 PM »
Actually, this errors comes, when searchbots, send many requests to the site. But maybe, i was mistaked! I`ve attached my sessions.php to reply...