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 (30986,18719,17703,17278,18042,44739,44855,18427,24412,45517,18572,14622,18185,17981,44865,18981,18353,10402,44867,17237,18648,44854,45561,28313,44765,24438,45180,24441,17771,44685,44766,3,44745,13922,44870,44869,17092,37267,45516,44845,44853,44858,18794,17904,13,45229,17556,8753,44851,17114,44837,22509,44868,45567,13988,18688,37057,6782,45072,45042,9341,44863,44775,44873,18652,4686,44767,17848,44866,44689)
Unknown column 'np.person' in 'where clause'