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 (45051,44861,4686,30986,4765,17657,18652,44873,44766,44674,18894,44711,43800,18172,10402,44863,22509,17601,44866,44869,44775,17237,44689,45516,16935,5388,44836,18185,17278,45517,37267,45229,45567,17703,18688,18430,6875,44870,44849,44669,44853,45518,17527,32454,44687,44640,18286,17755,45346,18648,24441,45262,5993,24438,14402,19078,44858,18353,14622,17556,18446,18719,6782,17335,17904,45180,44768,18279,45277,44764)
Unknown column 'np.person' in 'where clause'