Fatal error: Uncaught exception 'Exception' with message 'DB:Query fail<br>ERROR42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') as count' at line 3Query:select count(*) from (SELECT p_id as `id`,p_ispublic as `ispublic`,p_cate as `cate`,p_type as `type`,p_no as `no`,p_title as `title`,p_pic as `pic`,p_content as `content`,p_createtime as `createtime`,p_updatetime as `updatetime`,p_ip as `ip`,p_admin as `admin`,p_ind as `ind` FROM product WHERE 1 and p_ispublic=1 AND p_type = ) as count' in /home/idvtw12/public_html/inc/_database.class.php:408 Stack trace: #0 /home/idvtw12/public_html/inc/_database.class.php(162): Database->oops('Query fail') #1 /home/idvtw12/public_html/inc/lib/coderselecthelp.php(39): Database->queryCount('SELECT p_id as...') #2 /home/idvtw12/public_html/inc/lib/coderselecthelp.php(27): coderSelectHelp->getPageSQL() #3 /home/idvtw12/public_html/inc/class/class_product.php(30): coderSelectHelp->getLis in /home/idvtw12/public_html/inc/_database.class.php on line 408