Ver originalSELECT articulos.codigo, articulos.articulo, IFNULL(sum(stocks.ingreso)-sum(stocks.egreso),0) AS cantidad FROM articulos LEFT JOIN stocks ON articulos.codigo = stocks.codigo WHERE articulos.fuera_de_lista = "False"GROUP BY articulos.codigo ORDER BY articulos.codigo ASC