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 (44837,45516,17904,13425,44853,44745,17848,45277,44669,17237,18688,28530,45567,18648,44767,45262,5259,45517,44867,44685,6609,44835,31354,44858,24438,36472,13,44531,6862,30135,18572,44851,4686,18794,44765,44865,44861,4765,44870,18900,18652,17114,17981,45421,5993,14622,44689,37057,18237,24441,44866,44855,45518,44768,16885,45180,45346,43800,19078,17351,44766,44875,18353,17703,45515,18427,44674,3,44873,17839)
Unknown column 'np.person' in 'where clause'