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 (18900,18572,44863,44866,45567,18894,18185,17771,44674,44765,45421,3883,44836,44868,45346,6875,17835,45177,44851,17114,44849,44685,45516,34194,37057,17981,28313,17237,18286,5259,44884,13988,44837,17527,45515,44764,18237,44867,17848,44856,6782,45229,45051,3,17556,45180,16885,17904,18353,44858,17492,45286,18794,24412,18427,44878,32454,44854,17755,44689,24438,43800,17278,18981,30135,30986,17351,44669,45517,18279)
Unknown column 'np.person' in 'where clause'