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,18894,3,45567,44853,45262,34194,45518,18301,17601,18648,18427,4686,24438,18279,44851,17835,30135,44837,44674,37267,5388,45180,17492,44711,17848,14622,17755,44894,44765,5259,17114,45516,17981,44640,45277,13922,5410,24441,6782,4765,44849,6609,17351,44856,32454,13,18572,18185,44848,18794,44845,36472,17009,8753,18042,44766,18900,44884,45177,17556,17237,45051,44855,14402,18237,44768,45286,24411,44858)
Unknown column 'np.person' in 'where clause'