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 (4765,44837,45043,18446,24438,32454,18996,45051,44764,19078,17092,44858,17114,45180,45561,18427,30135,28530,37267,44765,44848,44861,17835,44863,17237,10402,44687,17771,18688,17904,17278,16935,37057,45286,45346,44869,17755,45177,13988,44671,17335,45277,18353,44685,44674,24441,18794,44851,34194,17527,43800,18301,3883,45072,5993,13,4686,44711,17657,44856,44865,44884,3,18286,6862,44531,9341,45517,8753,17492)
Unknown column 'np.person' in 'where clause'