Ignore orderby on count.
This commit is contained in:
parent
e3b97601e2
commit
8069fb28a1
@ -634,6 +634,7 @@ class ModelMySQL {
|
|||||||
static::$querySelect['select'] = ['1'];
|
static::$querySelect['select'] = ['1'];
|
||||||
static::$querySelect['sql_calc_found_rows'] = true;
|
static::$querySelect['sql_calc_found_rows'] = true;
|
||||||
static::$querySelect['limit'] = '1';
|
static::$querySelect['limit'] = '1';
|
||||||
|
static::$querySelect['orderBy'] = '';
|
||||||
$sql = static::buildQuery($resetQuery);
|
$sql = static::buildQuery($resetQuery);
|
||||||
$result = static::query($sql)->fetch_assoc();
|
$result = static::query($sql)->fetch_assoc();
|
||||||
return static::found_row();
|
return static::found_row();
|
||||||
|
Loading…
Reference in New Issue
Block a user