Exception

Database Exceptionyii\db\Exception

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') GROUP BY `products`.`id` ORDER BY `products`.`price_sale`, `cats`.`multicat`, ' at line 1
The SQL being executed was: SELECT `products`.* FROM `products` INNER JOIN `cats_for_products` ON `products`.`id` = `cats_for_products`.`product_id` LEFT JOIN `cats` ON `cats_for_products`.`cat_id` = `cats`.`id` LEFT JOIN `cats` `u2` ON `cats`.`parent_id` = `u2`.`id` INNER JOIN `characteristics_for_products` ON `products`.`id` = `characteristics_for_products`.`product_id` WHERE (cats_for_products.cat_id IN (6)) AND (characteristics_for_products.character_data_id = ) GROUP BY `products`.`id` ORDER BY `products`.`price_sale`, `cats`.`multicat`, `cats_for_products`.`cat_id`

Error Info: Array
(
    [0] => 42000
    [1] => 1064
    [2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') GROUP BY `products`.`id` ORDER BY `products`.`price_sale`, `cats`.`multicat`, ' at line 1
)
$_GET = [
    'city_new' => 'xn----7sbdqaabf2clfe5a7hpcg',
    'cat' => 'kolonki',
    'char' => 'zanussi',
];