error in the query:SELECT COUNT(*) AS total FROM `hkiraweb_sechand` WHERE `status`=1 AND `beTop`=1 AND `UserCancel` =0 AND `sale`=0 AND CAST(`price` AS INT) BETWEEN '15000' AND '20000' PDOException: SQLSTATE[42000]: Syntax error or access violation: 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) BETWEEN '15000' AND '20000'' at line 1 in /var/www/hkira.hk/includes/mysql.class.php:35
Stack trace:
#0 /var/www/hkira.hk/includes/mysql.class.php(35): PDO->prepare()
#1 /var/www/hkira.hk/project/hkiraweb/html/listsechandrent.php(156): mysqlclass->prepare()
#2 /var/www/hkira.hk/index.php(21): include_once('/var/www/hkira....')
#3 {main}