Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (18652,18648,44894,44671,24412,44669,13425,45051,44768,44869,30135,45567,16935,13922,37057,36472,17703,45515,44836,44745,34194,17657,44689,45346,18237,24441,43800,17092,17771,10402,45042,14622,4765,13988,18279,45277,44854,45518,44863,17601,18353,17114,44765,18900,6782,44856,44845,45286,44739,44884,17756,45229,44685,5388,39676,18719,18172,16885,44766,17351,17755,44858,19078,18981,44762,18688,45516,44855,44674,45180)
Unknown column 'np.person' in 'where clause'