Quote:
Originally Posted by mtha
I dont see the exclussion in this condition 
|
You are right that the condition itself doesn't make sense als all threads are stiicky or not
But: Table thread has an index called forumid which is built from the colums forumid, visible, sticky and lastpost.
Three of them (forumid, visible and lastpost) are already conditions of that particular query, so if a condition for column sticky is added mySQL uses this index which dramatically reduces the time to execute the query.
@thakikka
The code excerpt you posted seems just fine, so the error must be somewhere above.