Reputation: 881
I get an error, Unknown column 'events.event_id' in 'field list'
even though my table clearly has the column, as shown in the attached screenshot:
My SQL query is as follows:
SELECT
`events`.`event_id`,
`events`.`realm`,
`events`.`starts`,
`events`.`ends`,
`general_data`.`id`,
`general_data`.`nick`
FROM `events`
JEFT JOIN
`general_data` ON `events`.`owner`=`general_data`.`id`
WHERE
`instance`=1 AND
`zone`=1 AND
(`realm`='foo' OR `crossrealm`=1)
ORDER BY
`events`.`starts`,`events`.`realm` ASC
LIMIT 0,50
Could anyone please offer some insight to what migh tbe causing this problem?
Upvotes: 1
Views: 967
Reputation: 1521
JEFT JOIN
Did you type it wrong or? It should be LEFT JOIN i guess
Upvotes: 2