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

    • Update all   thanks to the workshop manual, it lead me back to checking fuses as mentioned central locking and door open lights worked when acc was switched on. diagram attached shows two points of power 1. ACC and 2.  Batt with the later being fused (#28) I did check the fuses using a multimeter but I must have stuffed that up also. Went back and checked the batt fuse in interior fuse box and you wouldn’t believe it… a blown fuse. replaced fuse and everything is now working as it should including the climate control   thank you all with your positive insight and knowledge.    
    • Where is the warning "That this thread is super old"   I just went into a 5 year old thread, went to do a reply, and couldn't see anywhere obvious a warning of it being super old
    • Duncan is correct. Pitwork (and Toyota's own cheap brand "Drive Joy") were primarily created as brands to sell other manufacturers car parts. It would be weird if Nissan sold parts for Toyota vehicles with a Nissan logo on it, so they created Pitwork to sell parts for other brans Toyota, Honda etc. They are not the same as Nissan genuine parts, although they *do* meet Nissan's standards for replacement parts. They aren't supposed to be a substitute for genuine parts, but a cheaper alternative that is better than Ebay fake parts from you-know-where.
    • Thanks GTSBoy, much easier to work with it now it's free!  
    • I _think_ that one has a christmas tree or some other retainer spike into a hole in that panel under it. Come in under it with thin scredrivers and just pry it gently up. If you rip the ears off the retainer pin....so what? Just stick it back down after with a bit of race tape and carry on with life.
×
×
  • Create New...