I have the following query:
SELECT *, MIN(dates.dates_time) AS 'min' FROM events, dates, types, seasons
LEFT JOIN shows ON events.events_shows_id = shows.shows_id
WHERE events.events_types_id = types.types_id
AND events.events_id = dates.dates_events_id
AND events.events_seasons_id = seasons.seasons_id
AND seasons.seasons_active = 1
AND types.types_id = 1
GROUP BY events.events_id
ORDER BY min
My old host runs MySQL v. 4.1.22. The above query worked. I have since switched to a new host, who uses MySQL v. 5.1.46 and that query gives me the following error message:
#1054 - Unknown column 'events.events_shows_id' in 'on clause'
As far as I can tell, the tables are all the same after the host switch. Certainly there IS an "events.events_shows.id" column in the "events" table so why the error is saying there isn't one is baffling me. Are there new JOIN rules with this newer version of MySQL?