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 (18446,22509,44865,18279,17351,45515,45561,17981,18652,9341,45346,28530,39676,17904,14622,18648,44767,32454,17092,45051,8753,18172,17114,18688,37267,44837,17335,5410,44669,3883,13988,5993,18237,30986,6782,44856,44674,45229,44870,44868,44764,18719,45277,17703,18427,44894,24412,45072,18430,43800,44739,45516,44866,24441,17278,44766,18301,45042,5388,44687,17848,17237,16935,17756,34194,44640,19057,31354,17009,44849)
Unknown column 'np.person' in 'where clause'