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 (6782,17601,45518,44836,45180,45051,44854,45561,6875,10402,44765,17237,44894,28530,44867,44858,17114,24441,22509,18446,44711,5388,17904,17981,44845,31354,44870,17335,32454,44745,17351,45421,45042,4765,28313,18279,17755,17835,4686,36472,44856,14402,44869,44764,44837,16935,44835,18353,44865,44868,24438,30135,45262,44861,18237,45517,44531,45567,34194,18185,44873,44851,18572,18719,45043,44849,30986,17657,18996,17556)
Unknown column 'np.person' in 'where clause'