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

    • Bit of a pity we don't have good images of the back/front of the PCB ~ that said, I found a YT vid of a teardown to replace dicky clock switches, and got enough of a glimpse to realize this PCB is the front-end to a connected to what I'll call PCBA, and as such this is all digital on this PCB..ergo, battery voltage probably doesn't make an appearance here ; that is, I'd expect them to do something on PCBA wrt power conditioning for the adjustment/display/switch PCB.... ....given what's transpired..ie; some permutation of 12vdc on a 5vdc with or without correct polarity...would explain why the zener said "no" and exploded. The transistor Q5 (M33) is likely to be a digital switching transistor...that is, package has builtin bias resistors to ensure it saturates as soon as base threshold voltage is reached (minimal rise/fall time)....and wrt the question 'what else could've fried?' ....well, I know there's an MCU on this board (display, I/O at a guess), and you hope they isolated it from this scenario...I got my crayons out, it looks a bit like this...   ...not a lot to see, or rather, everything you'd like to see disappears down a via to the other side...base drive for the transistor comes from somewhere else, what this transistor is switching is somewhere else...but the zener circuit is exclusive to all this ~ it's providing a set voltage (current limited by the 1K3 resistor R19)...and disappears somewhere else down the via I marked V out ; if the errant voltage 'jumped' the diode in the millisecond before it exploded, whatever that V out via feeds may have seen a spike... ....I'll just imagine that Q5 was switched off at the time, thus no damage should've been done....but whatever that zener feeds has to be checked... HTH
    • I think Fitmit had some, have a look on there (theyre Australian as well)
    • Hah, fair enough! But if you learn with this one you can drive any other OEM manual. No modern luxury features like auto rev-matching or hillstart assist to give you a false sense of confidence. And a heavy car with not that much torque so it stalls easily. 
    • Actually, I'd say all three are the automatic option. Just the different trim levels. The manual would be RSFS, no? 
×
×
  • Create New...