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 (6609,17278,18301,31354,14622,18652,44853,18981,44835,45262,44873,6782,17771,44531,17703,43800,44854,17092,44848,45072,18286,18794,39676,17009,45561,45180,44867,44768,18430,44674,45229,30135,44861,44845,45346,17755,5259,45277,24438,44762,17351,45517,18688,45421,44745,13988,19078,44866,28313,44865,45516,18650,5410,44837,44836,18172,18719,6875,9341,8753,44851,44863,17335,44687,10402,37267,17904,45518,37057,17835)
Unknown column 'np.person' in 'where clause'