Ver originalSELECT * FROM tabla1 LEFT JOIN (SELECT * tabla2 WHERE identificacion='123') T1 USING(codigo) ;