vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   SQL error, not sure where from.... (https://vborg.vbsupport.ru/showthread.php?t=54916)

DiscussAnything 07-01-2003 04:01 PM

SQL error, not sure where from....
 
This is for a new (additional) forum I'm setting up, the license has been bought and is in process, just so you know..

I'm getting the msg below emailed to me. It's been 3 or 4 time already, but I'm not sure where it's coming from. There is no forum/forum dir though....

Quote:

Invalid SQL: SELECT COUNT(*) AS posts FROM post
LEFT JOIN thread ON thread.threadid=post.threadid WHERE post.visible=1 AND post.threadid= AND 1=1 AND NOT (thread.forumid='10' OR thread.forumid='11') AND post.userid='3'
mysql error: You have an error in your SQL syntax near 'AND 1=1 AND NOT (thread.forumid='10' OR thread.forumid='11') AND post.userid='3' at line 2

mysql error number: 1064

Date: Tuesday 01st of July 2003 12:57:11 PM
Script: http://www.chopperweb.net/forum/foru...ts&searchid=10

I have the vbhome hack and some others, is there any way to find out what this means and how to fix it?

forumid 10 & 11 are for the staff category and staff forum. I tried to look in the search.php but it's not in there. The closest I can get is

PHP Code:

$getnum=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post
    "
.
    
iif(strlen(strpos($search[query],"thread."))," LEFT JOIN thread ON thread.threadid=post.threadid ","").
    
" WHERE post.visible=1 AND $newpostsql $searchthreadquery $search[query]"); 

help?

filburt1 07-01-2003 04:58 PM

Code:

post.threadid=
There needs to be a threadid of a thread after that.

DiscussAnything 07-01-2003 04:59 PM

yeah i noticed that, but I can't seem to find that query. Any ideas?


All times are GMT. The time now is 11:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00939 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete