fix for Like in join queries