A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INT) ASC LIMIT 4' at line 5

SELECT * FROM `products` WHERE `products`.`status` = 1 AND `id_category` IN('30') ORDER BY `orders` ASC, CAST(dung_luong AS INT) ASC LIMIT 4

Filename: core/MY_Model.php

Line Number: 158