-1){ $limit=" limit $qtde"; } else{ $limit=""; } /*------------------------------ * * SEM CATEGORIAS * ------------------------------*/ if ( $tool_cfg['CATEGORIA']['TYPE'] == 'FIXED' ) { $params = array(); $params['categoria'] = $tool_cfg['CATEGORIA']['VAL']; $params['sql_trail'] = ' ORDER BY data DESC, titulo'.$limit; $res = $obj->get($params); ?>