Jump to content
SAU Community

Recommended Posts

  • Replies 59
  • Created
  • Last Reply

Top Posters In This Topic

this...

[b]Error[/b]

SQL-query :  

SELECT threadid
FROM thread AS thread
LEFT JOIN deletionlog AS delthread ON ( delthread.primaryid = thread.threadid AND delthread.type = 'thread' ) 
WHERE forumid
IN ( 3, 7, 8, 44, 53, 59, 10, 9, 11, 17, 66, 63, 64, 57, 4, 49, 50, 19, 14, 67, 18, 16, 32, 30, 42, 62, 15, 43, 47, 48, 65, 6, 21, 46, 51, 33, 54, 22, 31, 35, 55, 23, 34, 28, 37, 58, 24, 39, 25, 36, 26, 40, 27, 38, 5, 29, 60, 61, 41, 56, 12, 13 ) AND thread.lastpost >=1078366975 AND visible =1 AND delthread.primaryid IS NULL 
ORDER BY lastpost DESC 
LIMIT 

MySQL said: 


#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 '' at line 7 

I put it in the PHP tags cause its easier to read..

Christian

Link to comment
https://www.sau.com.au/forums/topic/35144-new-posts/page/2/#findComment-710245
Share on other sites

Hey christian, I had a look at the thread over at the vbulletin forum, looks like they pointed out the SQL syntax problem, the keyword LIMIT wasn't followed by a number.

I know *nothing* about php but I assume that $vboptions[maxresults] bind variable should be set somewhere, is it some sort of application wide setting in a config file that you need to add?

Link to comment
https://www.sau.com.au/forums/topic/35144-new-posts/page/2/#findComment-710996
Share on other sites

Compare the code to the "user cp" button code - it displays the last active 'subscribed' posts - maybe the code is similar to the 'new posts' code ??

The 'user cp' code seems to work - so maybe there is a clue there ??

Link to comment
https://www.sau.com.au/forums/topic/35144-new-posts/page/2/#findComment-711007
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Similar Content

  • Latest Posts

    • I would like to add that at least in my car, the RPM gauge shows around 200RPM above of what I can see at nistune.
    • Unless you have big cams, there is no reason for an RB to idle at any more than the stock 650. No, it is not 850, 950, or anything else. It is 650. In fact, it might even be 550. I just opened an arbitrary stock Neo file in Nistune, and this is what I see
    • I love the undertray, especially the flappy bit for easier access for serving I'm thinking of fabing up one at work for the MX5 while I still have access to the metal shop at work with a guillotine and press brake Whilst removing the plastic undertray on the MX5 isn't to hard, I love the idea of a 2 bolt flap as opposed to removing the whole thing 
    • Great thank you for that. Yeah that is the bumper and spoiler it still has i just hadn't heard of it being referred to as a aero form bumper before. Really appreciate your help.
    • A little progress; I took the opportunity of an oil change to take a sample for oil analysis, will be interesting to see how it was treated for its first 125,000klm (I know how it has been treated since :rofl:) I went with 5w40 and will see what that does for oil pressure at higher revs. Also fitted the Z1 front undertray....a little more sturdy than the plastic factory one (although I suspect it won't stop a tree stump ) Nicest thing about it really is the 2 bolt "service panel"....a gift to the oil changer compared to removing 14 bolts holding the factory tray.
×
×
  • Create New...