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 (17601,17703,45517,17981,45567,18900,17904,44853,44856,18430,24441,45516,3,17114,44640,44845,17556,6609,36472,44868,45346,18185,18572,44869,6782,18042,44765,17756,24412,19057,5388,44870,44767,18279,44762,44861,17278,44878,17848,45421,44875,18996,18981,18446,17009,14402,45180,37057,18794,37267,28313,13425,6875,18172,45043,34194,14622,44689,18301,45277,17527,44687,17839,44669,44848,43800,44854,5259,18894,17335)
Unknown column 'np.person' in 'where clause'