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 (17835,44854,19057,28530,45277,8753,14622,44858,44856,5259,17092,18652,18427,10402,45516,24411,6875,44845,45346,37267,17114,44837,44762,45262,18353,32454,17601,13,44863,17657,45177,17351,44640,30986,44768,5410,44765,44866,44689,45517,17756,44687,5388,36472,6609,18172,18894,3883,5993,18301,45042,44867,44766,18650,44848,44851,44767,14402,18042,44775,17335,44861,44853,28313,6782,18719,45180,44869,44884,44669)
Unknown column 'np.person' in 'where clause'