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 (44674,36472,44767,34194,17981,28313,44768,44870,44868,44865,45517,44894,44836,44873,13,17657,17835,44855,3883,45286,45043,44863,18981,18237,18652,18185,18996,44866,45515,6782,45262,17114,24411,17771,45567,44835,44861,44745,5259,45180,18572,5410,39676,4686,13988,22509,9341,44867,17335,45277,37267,44845,44869,17601,5993,18042,17755,17237,17351,17904,8753,24441,45177,17756,17848,45346,45051,14622,19057,18648)
Unknown column 'np.person' in 'where clause'