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 (44869,10402,17904,17492,44856,45043,44837,17335,45346,44867,45286,44669,18719,13922,17237,44858,45277,44687,45051,44865,44851,17527,44766,44848,32454,44674,17981,45072,44849,18446,6875,45567,44863,17755,22509,45516,44835,36472,18648,37267,18301,18572,4686,5388,34194,18688,45177,3,18430,45042,4765,45262,18042,5993,17703,30963,19057,24411,17009,44868,18652,44739,45518,45517,17351,14402,24412,18279,44689,17771)
Unknown column 'np.person' in 'where clause'