Im trying to join two tables but cannot seem to figure out how to resolve this error:
This is the code generated from CodeIgniter:
SELECT `proc`.* FROM (`deliverycheck_proc_entries` proc)
LEFT OUTER JOIN `deliverycheck_proc_entries`
ON `proc`.`raw_entry_id` = `deliverycheck_raw_entries`.`id`
WHERE `proc`.`status` > '1'
ORDER BY `id` asc LIMIT 10
My error:
Error Number: 1054
Unknown column 'deliverycheck_raw_entries.id' in 'on clause'
I need all the columns from deliverycheck_proc_entries and specific from deliverycheck_raw-entries.
change
to
Edit