From: Romain LE D. <rom...@le...> - 2009-07-27 21:12:09
|
Le 27 juil. 09 à 22:48, Andy Staudacher a écrit : > True, since it's just a count(), the order by is indeed useless. > > The order by should be in the second query. It's not as simple as moving the ORDER BY. It's a nonsense of sorting by {$this->sort_column} because of the equality in the WHERE clause. We must choose a default sorting for this query. It could be "left_ptr" so it will be sorted by upload order. Greetings. |