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 (44711,17237,45180,44640,18894,17981,18237,17703,45561,45277,16885,37267,10402,8753,17527,17755,44669,13425,24411,44854,44870,44849,44848,5259,44765,44764,44853,28530,44855,45042,18688,17904,45072,44869,45177,44768,44866,6609,17601,17492,44894,44873,17351,44766,44868,24438,45517,18353,18279,30135,17009,18301,44875,44685,45286,45043,24412,44867,31354,18446,44837,17835,39676,34194,18430,6782,18286,44865,44863,22509)
Unknown column 'np.person' in 'where clause'