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 (45180,44861,44856,44867,10402,44837,6782,8753,18981,44865,45286,18652,18894,44835,3,45262,44868,44894,44531,44745,17848,18301,22509,5388,17278,24411,6862,44854,17755,45517,44853,18446,24412,44851,43800,17556,17335,45051,18172,13922,30135,44855,4686,9341,45561,45229,24438,44870,17009,44767,6875,45072,18996,45421,45518,44869,28530,17237,13,45177,18279,17092,18648,45516,45277,17904,13425,17771,5259,44873)
Unknown column 'np.person' in 'where clause'