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 (44866,17703,8753,32454,44762,17114,43800,39676,44867,36472,18279,17237,45515,44531,44845,44837,45518,17351,13922,17601,44894,18301,30135,44764,45516,9341,45517,44687,44868,19057,4686,34194,5410,17556,45567,10402,17755,17839,18719,18430,30963,18286,44849,28530,18650,45229,5388,18648,18237,18652,18996,45277,45072,44865,24441,44674,3,17092,44853,44767,37267,44870,18185,44861,44766,17335,45177,44856,45262,44671)
Unknown column 'np.person' in 'where clause'