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 (18688,18353,44845,45042,17351,4686,17009,36472,17601,17848,18427,19078,17335,45043,45177,45421,18996,31354,5259,43800,18172,30986,44870,44685,3,44739,18719,16935,44764,45517,18430,3883,18185,44894,44531,8753,30135,44866,44768,45567,18301,5410,37057,45518,45515,24412,17237,13988,44854,5993,44765,44836,45072,18446,39676,17981,44766,45516,45346,44775,44837,17527,16885,44669,45051,44869,18237,13,44878,17756)
Unknown column 'np.person' in 'where clause'