analiza tu consulta, y nota que hace falta un operador:
Cita: // MAL
select folio, fecha, hora, unidad, nombre from reporte, unidades, usuarios where reporte.id_unidad = unidades.id_unidad and reporte.id_nom = usuarios.id_nom reporte.fecha between '$fecha1' and '$fecha2'
// BIEN
SELECT
folio, fecha, hora, unidad, nombre
FROM
reporte, unidades, usuarios
WHERE
((reporte.id_unidad = unidades.id_unidad) AND (reporte.id_nom = usuarios.id_nom))
AND
(reporte.fecha between '$fecha1' AND '$fecha2' )
además también deberías agrupar las condicionales, si no se te puede complicar...