1064 error with recordset
Well, I have a MySQL query that runs just fine when testing it outside of DW CS5. When I put the query in a recordset I get an error. Some 1064 error. What gives? The query works and is perfectly fine except when I feed it to DW. Here it is:
SELECT PRV_Reservation_People.PRV_person_id, PRV_Reservation_People.PRV_person_first_name, PRV_Reservation_People.PRV_room_name, PRV_Reservation_People.PRV_occupancy_cat, david.cnt
FROM PRV_Reservation_People JOIN (SELECT PRV_Reservation_People.PRV_room_name, COUNT(*) AS cnt FROM PRV_Reservation_People
WHERE PRV_reservation_ID = column
GROUP BY PRV_room_name ) AS david ON (PRV_Reservation_People.PRV_room_name = david.PRV_room_name) WHERE PRV_reservation_ID = column