Ver originalSELECT * FROM products AS t1LEFT JOIN (SELECT MAX(id) AS id,stock, id_product FROM inventory WHERE id_zone=1) AS t2 ON (t1.id_product=t2.id_product)