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`.`diameter`='18.00') AND (`wheel_modification`.`width` BETWEEN '7.50' AND '9.00') 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 8

Error Info: Array
(
    [0] => 42S22
    [1] => 1054
    [2] => Unknown column 'wheel_modification.price_retail = 0' in 'order clause'
)
$_GET = [
    'brand_slug' => 'continental',
    'model_slug' => 'contisportcontact-2',
    'slug' => '225-40-r18-88-y',
    'sort' => 'price',
];

$_SESSION = [
    '__flash' => [],
    'viewed-products::list' => [
        'tire' => [
            'tire::43231' => [
                'type' => 'tire',
                'id' => 43231,
            ],
        ],
        'wheel' => [],
    ],
];