Severity: Notice
Message: Trying to get property 'parent_id' of non-object
Filename: controllers/Product.php
Line Number: 85
Backtrace:
File: /home/f5cvn/domains/f5c.vn/public_html/application/controllers/Product.php
Line: 85
Function: _error_handler
File: /home/f5cvn/domains/f5c.vn/public_html/index.php
Line: 629
Function: require_once
Severity: Notice
Message: Trying to get property 'id' of non-object
Filename: controllers/Product.php
Line Number: 86
Backtrace:
File: /home/f5cvn/domains/f5c.vn/public_html/application/controllers/Product.php
Line: 86
Function: _error_handler
File: /home/f5cvn/domains/f5c.vn/public_html/index.php
Line: 629
Function: require_once
Severity: Notice
Message: Trying to get property 'id' of non-object
Filename: controllers/Product.php
Line Number: 87
Backtrace:
File: /home/f5cvn/domains/f5c.vn/public_html/application/controllers/Product.php
Line: 87
Function: _error_handler
File: /home/f5cvn/domains/f5c.vn/public_html/index.php
Line: 629
Function: require_once
Error Number: 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 ')) as t group by `price_range` ORDER BY `price`' at line 1
select t.`price_range`, count(`price`) as `num` from (select case when `price` < 500000 then '0 - 500K' when `price` >= 500000 and price < 1000000 then '500k - 1 triệu' when `price` >= 1000000 and price < 2000000 then '1 triệu - 2 triệu' when `price` >= 2000000 and price < 3000000 then '2 triệu - 3 triệu' when `price` >= 3000000 and price < 5000000 then '3 triệu - 5 triệu' when `price` >= 5000000 and price < 10000000 then '5 triệu - 10 triệu' when `price` >= 10000000 and price < 20000000 then '10 triệu - 20 triệu' when `price` >= 20000000 and price < 40000000 then '20 triệu - 40 triệu' when `price` >= 40000000 and price < 70000000 then '40 triệu - 70 triệu' when `price` >= 70000000 then '> 70 triệu' end as `price_range`, price from `product` WHERE `cat_id`IN ()) as t group by `price_range` ORDER BY `price`
Filename: models/Product_model.php
Line Number: 149