Copied! Copy Stacktrace Search Stackoverflow Search Google Exception

Database Exceptionyii\db\Exception

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'wheel_modification.price_retail = 0' in 'order clause'
The SQL being executed was: SELECT `wheel_modification`.* FROM `wheel_modification` LEFT JOIN `wheel_model` ON `wheel_modification`.`model_id` = `wheel_model`.`id` LEFT JOIN `wheel_brand` ON `wheel_modification`.`brand_id` = `wheel_brand`.`id` WHERE (`wheel_modification`.`is_active_position`=1) AND (`wheel_modification`.`quantity_external` >= '2') AND (`wheel_model`.`is_active_position`=1) AND (`wheel_brand`.`is_active_position`=1) ORDER BY `wheel_modification`.`price_retail = 0`, `wheel_modification`.`price_retail` LIMIT 100

Error Info: Array
(
    [0] => 42S22
    [1] => 1054
    [2] => Unknown column 'wheel_modification.price_retail = 0' in 'order clause'
)
$_GET = [
    'sort' => 'price',
];

$_SESSION = [
    '__flash' => [],
    'wheel-filter.last-use-mode' => 'search',
];