$sql="select sai, fecha, hora as entrada from control where tipo='".$Entrada."' IN (select hora as Salida from control where tipo='".$Salida."')";