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 (44870,3883,17904,44849,24412,18894,16885,17981,44775,17527,17351,44669,17556,44766,44853,45421,44765,18446,45262,44762,44711,45072,4686,6782,44739,16935,18652,17114,8753,5388,5410,14622,17335,44866,37267,6875,13922,31354,44861,43800,10402,17601,44674,45051,28530,17755,6862,44687,19057,45043,44873,32454,18279,37057,13988,18286,34194,6609,44837,17771,18185,18237,18981,45517,44869,17835,44884,5259,44863,44865)
Unknown column 'np.person' in 'where clause'