get_results("SELECT topic_id,topic FROM $topic_table where ispublic=1 and isactive=1 ORDER BY `sort` ASC ");$pri_opt = $ost_wpdb->get_results("SELECT priority_desc,priority_id FROM $priority_table");if($keyost_version==1914){ $dept_sql="SELECT name as dept_name,id as dept_id FROM $dept_table where ispublic=1";}else{ $dept_sql="SELECT dept_name,dept_id FROM $dept_table where ispublic=1";}if(checkLicense()=="activated"){ $display_to_value=key4ce_getKeyValue('dipslay_department_to'); if($display_to_value!="") { if($keyost_version==1914) { $dept_sql.=" AND id IN ($display_to_value)"; } else { $dept_sql.=" AND dept_id IN ($display_to_value)"; } } }$dept_opt = $ost_wpdb->get_results($dept_sql);require_once( WP_PLUGIN_DIR . '/key4ce-osticket-bridge/includes/database.php' );?>