Here is my query:
select s.*,
u.display_name
from wp_wdify_sites s,
wp_users u
LEFT JOIN wp_wdify_sitesmeta m ON (s.sid = m.site_id)
where milestones like '%dateSubmitted%'
and milestones not like '%dateArchived%'
and u.ID = s.cid and did IN (0)
and m.meta_key = 'aboutSite'`
The error I'm getting is #1054 - Unknown column 's.sid' in 'on clause'. The problem is, wp_wdify_sites.sid
definitely does exist. It doesn't make sense.