'$now' and title like '%$OJ_NOIP_KEYWORD%'"; $row=pdo_query($sql); if(!empty($row)) $NOIP_flag=$row[0]; else $NOIP_flag=false; } $view_news = ""; $sql = "select * " . "FROM `news` " . "WHERE `defunct`!='Y' AND `title`!='faqs.$OJ_LANG'" . "ORDER BY `importance` ASC,`time` DESC " . "LIMIT 50"; $view_news .= "