Цитата:
If you combine LIMIT row_count with ORDER BY, MySQL stops sorting as soon as it has found the first row_count rows of the sorted result, rather than sorting the entire result.
MySQL не будет сортировать всю таблицу, Вы хотите 1 результат, он Вам его и вернет.
Наверное нужно сделать запрос на max(id) WHERE (showid = 1 AND id < $id_wiew)
|