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 (44764,5259,17092,45180,17981,43800,18900,17756,44848,18650,44894,44861,17009,44868,3883,44775,18648,19057,44768,18894,44873,30986,18572,18430,44856,18279,45515,45043,13922,5388,37057,44863,18301,14402,44851,45346,44884,17237,45177,44869,3,18185,6875,17904,10402,18353,45262,17335,18042,17835,19078,44837,18172,16935,36472,6862,4765,37267,44867,45518,44845,44765,45567,44767,44671,5993,8753,18719,18794,18688)
Unknown column 'np.person' in 'where clause'