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 (45515,45567,37267,44837,17601,18894,17351,44867,9341,44764,44745,44767,44884,18427,44854,18981,18185,44775,32454,45180,44870,44669,17771,44865,17904,44848,45262,17755,44851,18237,37057,45561,45042,17092,24441,39676,44640,43800,6875,45286,44869,45051,19078,13922,5259,34194,5388,45518,17981,30135,44853,45516,6609,17114,18446,8753,17237,17527,24438,44765,17703,4686,44674,44856,18688,17335,18286,18650,28313,28530)
Unknown column 'np.person' in 'where clause'