Given sql:
DELETE FROM wgcartarmazens
WHERE (
SELECT artigo
FROM wgcartarmazens as T
INNER JOIN wgcartigos as A ON A.CODIGO=T.ARTIGO
WHERE T.lote='' AND A.TEMLOTE<>0
);
The above query returns me the following error
subquery returns more than 1 value this is not allowed when the subquery follows
How can I fix it?