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 (14402,22509,44531,5388,18996,17703,44865,8753,17904,17601,44868,18430,18279,30986,44766,45277,30135,18042,37267,44765,18652,17755,32454,44863,45177,18688,44764,43800,44745,13,45421,4686,24412,18981,13922,44861,5410,45346,44762,36472,18172,45518,18237,44870,17492,18185,19078,17835,17278,13425,17009,44866,45262,17771,44767,31354,17848,45517,6875,18286,28530,44858,45051,34194,44848,18353,10402,14622,18446,18719)
Unknown column 'np.person' in 'where clause'