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 (17756,18042,45515,37267,17237,45518,18446,3,18286,44894,44858,44851,45346,45277,18572,45051,18652,44764,44640,17092,45229,17114,45567,32454,18688,17556,44856,17981,14402,18301,18648,44875,17904,17657,17335,18353,16935,17492,13,44835,6875,44861,44687,44685,17351,44766,37057,28313,45180,5410,5388,18279,45042,44873,6782,9341,44878,17278,17703,4765,44865,17009,17848,18894,45421,28530,44689,44671,17601,44768)
Unknown column 'np.person' in 'where clause'