Ver originalSELECT *FROM tabla1 t1INNER JOIN tabla2 t2 ON t1.id=t2.idWHERE t1.campoT12 = @valorT12AND t1.campoT14 = 1AND t2.campoT24 IN (@valor1,@valor2,@valor3)