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 ')' at line 3

#0 /var/www/myupdates.com/www/bcx/db/DbMysql.class.php(1239): bcx_db__DbMysql->halt('Failed SQL quer...')
#1 /var/www/myupdates.com/www/bcx/db/DbMysql.class.php(1343): bcx_db__DbMysql->query('            SEL...')
#2 /var/www/myupdates.com/www/bcx/myupdates/SoftwareManager.class.php(989): bcx_db__DbMysql->queryAll('            SEL...')
#3 /var/www/myupdates.com/www/bcx/myupdates/home/browseproducts.php(92): bcx_myupdates__SoftwareManager->getCategoryProductIds(120)
#4 {main}