Hola,
¿Alguien sabe dónde está el error de esta consulta?.
Código MySQL:
Ver originalSELECT id_habitacion
, nombre
, descripcion
, ocupacion_maxima
, tarifa
FROM habitacion
LEFT JOIN reservadas
ON (habitacion.id_habitacion
= reservadas.id_habitacion
AND fecha_entrada
>= '' AND fecha_salida
<= '') WHERE ocupacion_maxima
>= 0 GROUP BY id_habitacion
, nombre
, descripcion
, ocupacion_maxima
, tarifa
La he probado directamente en phpmyadmin y me tira este error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asc, tarifa desc LIMIT 0, 30' at line 6