Select id from tbl_noticias where idcategorianoticia<>1 and idcategorianoticia<>19 order by fecha desc No database selected