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 (18353,45277,45346,6782,18172,14402,17278,18688,18446,9341,18286,44764,18572,44837,17092,4686,17335,3883,17492,6875,13,17556,17904,45567,14622,28313,45177,17835,45180,5259,17756,44868,34194,45262,18719,45561,44640,44867,17755,18894,18981,13425,45051,31354,45072,45043,17114,36472,44855,44866,30986,24438,44849,44869,44853,44765,45286,44878,17848,3,44861,37267,17009,44775,6862,17981,44685,45515,18794,44848)
Unknown column 'np.person' in 'where clause'