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 (10402,44866,44868,44856,44863,3883,5388,18719,44853,44858,44848,45262,44766,45561,44767,8753,13922,6609,32454,44875,44884,17703,13,17601,44851,18185,45051,44687,3,44531,17839,45518,45421,44861,18301,44867,18427,37057,17657,44845,18794,44775,14402,18648,44873,17981,45516,45180,18572,44640,34194,44674,18688,45286,17835,24441,13425,19057,17278,44870,44669,44739,17904,43800,17755,30135,18353,18996,45346,17335)
Unknown column 'np.person' in 'where clause'