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



×
×
  • Create New...