Thread: Major Additions - Links and Downloads Manager
View Single Post
  #367  
Old 04-23-2008, 05:19 AM
itsblack itsblack is offline
 
Join Date: Dec 2005
Location: Augsburg
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andrew, I have installed 2.2.9 RC. Thank you.

I got mysql error when I search the multiple words such as "Cambridge Companions" with the option "all words" or "exact phrase". There's no problem with the option "any word".

PHP Code:
Invalid SQL:

        
SELECT
            link
.linkid AS linkidlink.linkname AS linknamelink.linkdoi AS linkdoi,
            
link.linkuserid AS linkuseridlink.linkusername AS linkusername,
            
link.linkurl AS linkurllink.linkimg AS linkimg,
            
link.linkimgthumb AS linkimgthumblink.linkimgthumbsize AS linkimgthumbsizelink.linkforum AS linkforum,
            
link.linkdesc AS linkdesclink.numrate AS numratelink.totrate AS totrate,
            
link.linkhits AS linkhitslink.linksize AS linksizelink.linkstatus AS linkstatus,
            
link.linkdate AS linkdatelink.linkmoderate AS linkmoderatelink.linkmoddate AS linkmoddate,
            
link.linkreviewfreq AS linkreviewfreq,
            
ltoc.catid AS linkcatidltoc.displayorder AS linkdorder
            
            
ltoc2.catid AS linkcatid2
            
            
lkeys.keyword AS linkkey
            FROM local_linkslink 
AS link
            LEFT JOIN local_linksltoc 
AS ltoc ON link.linkid ltoc.linkid
            
            
            
    
            LEFT JOIN local_linksltoc 
AS ltoc2
            ON link
.linkid ltoc2.linkid
        
            LEFT JOIN local_linksltok 
AS ltok
            ON link
.linkid ltok.linkid
            LEFT JOIN local_linkskeys 
AS lkeys
            ON ltok
.keyid lkeys.keyid
         WHERE link
.linkforum NOT IN (0)  AND (link.linkid IN () OR link.linkid IN (-1,355,425,427,428,429,430,431,436,439,483,673,723,801,1051,1063,1079,1118,1129,1159,1161,1160,1179,1180,1321,1371,1410,1578,1579,1580,1584,1593,1594,1595,1646,1687,1771) OR link.linkid IN (-1)) 
            
ORDER BY   linkdate DESClinkname ASClinkcatid ASC;

MySQL Error  You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near ') OR link.linkid IN (-1,355,425,427,428,429,430,431,436,439,483,673,723,801,1051' at line 28
ERROR       
1064 
My mysql version is 5.0.45. Now what can I do?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01374 seconds
  • Memory Usage 1,805KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete