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 (44894,13988,36472,17351,44689,18572,44669,44870,39676,44869,44848,6782,18900,44854,45567,45051,16935,24412,5410,18430,44867,45517,9341,45043,18794,18185,44531,18286,14622,13425,30986,44835,14402,17278,17904,17755,44856,44837,5259,17009,22509,17848,18446,18996,44767,44764,44711,17556,45421,17835,19057,18427,17703,17756,44855,45518,24438,18688,17492,44884,17335,45516,44849,44687,44861,32454,44640,37057,44863,17237)
Unknown column 'np.person' in 'where clause'