Ver originalSELECT t1.id_t1, t1.id_t2, t1.nombre, t2.codigo FROM tabla1 t1 INNER JOIN tabla2 t2 ON t1.id_t2=t2.id_t2WHERE t1.id_t1 = X