Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 03:42 pm EST

Geeklog Forums

Another SQL Error


Status: offline

D1

Forum User
Chatty
Registered: 08/27/03
Posts: 55
Hello Everyone,
Below is the latest SQL error encountered from my geeklog powered web hosting website.

Text Formatted Code
Thu Nov 11 10:52:27 2004 - 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 '))) AND (date <= NOW()) AND (draft_flag = 0) AND (tid IN ('SerV. SQL in question: SELECT COUNT(*) AS count FROM 3in1_stories WHERE (date >= (date_sub(NOW(), INTERVAL  SECOND))) AND (date <= NOW()) AND (draft_flag = 0) AND (tid IN ('SerV'))
 


Can someone please help, as this is a matter of urgency.

Regards
What an old man can see, a young man will never see even though he is standing at the top of the highest mountain.
 Quote

Status: offline

tomw

Forum User
Full Member
Registered: 08/12/02
Posts: 300
Check your config.php value for CONF['newstoriesinterval'], it appears to be blank.
 Quote

Status: offline

D1

Forum User
Chatty
Registered: 08/27/03
Posts: 55
Hi Tomw,

I have just checked the config.php and it's alright.
I even deleted my config.php file and reuploaded it.
Still wouldn't work.
the same error message still displaying...
What an old man can see, a young man will never see even though he is standing at the top of the highest mountain.
 Quote

Status: offline

tomw

Forum User
Full Member
Registered: 08/12/02
Posts: 300
The newstoriesinterval is what is missing.

What do you have for the new stories interval?

How about something directly above you have changed and left off a quote mark?
 Quote

Status: offline

D1

Forum User
Chatty
Registered: 08/27/03
Posts: 55
Well,

I'd not been able to solve this problem, it's unfortunate this has to happen. I have to re install the site.
I discovered that the site is actually working it is only the homepage that wouldn't work...

Regards
What an old man can see, a young man will never see even though he is standing at the top of the highest mountain.
 Quote

All times are EST. The time is now 03:42 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content