syntax error: select count(id) as num from table_product where (type='product' or type='promo') and hienthi=1