MySQL获取顺序

I'm having some troubles. I'm testing out a forum that I created and I'm having a few troubles with echo'ing out the database stuff.

Here's the source:

$getThreads = mysql_query("
    SELECT * 
    FROM Threads 
    WHERE 
        tid='$ID' 
        AND Type='regular' 
    ORDER BY bump DESC LIMIT {$Minimum},  ". $Setting["PerPage"]);

while ($gT = mysql_fetch_object($getThreads)) {

And here is the error,

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/a8118489/public_html/Forum/ViewTopic.php on line 680

Although this is not an answer in my point of view, on repeated request I'll give the code you should use instead:

$getThreads = mysql_query("SELECT * FROM Threads WHERE tid='$ID' AND Type='regular' ORDER BY bump DESC LIMIT {$Minimum},  ". $Setting["PerPage"]) or die(mysql_error());