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/emarket2/public_html/0800200992.idv.tw/inc/_database.class.php:408 Stack trace: #0 /home/emarket2/public_html/0800200992.idv.tw/inc/_database.class.php(162): Database->oops('Query fail') #1 /home/emarket2/public_html/0800200992.idv.tw/inc/lib/coderselecthelp.php(39): Database->queryCount('SELECT p_id as...') #2 /home/emarket2/public_html/0800200992.idv.tw/inc/lib/coderselecthelp.php(27): coderSelectHelp->getPageSQL() #3 /home/ in /home/emarket2/public_html/0800200992.idv.tw/inc/_database.class.php on line 408