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 (45567,45516,44866,44762,18688,44878,44849,31354,44867,44856,45515,45043,13425,24412,45517,44671,17904,44853,28313,6875,18301,44875,44531,17755,39676,17278,17092,17756,44765,18353,45346,5993,44687,18996,14622,44868,45072,4686,44837,44861,3,19078,18794,44689,18430,17981,13922,18981,18652,28530,32454,17335,17703,17848,13988,18719,30963,17114,45421,30135,17556,37267,17601,18172,45277,18279,44855,16935,10402,13)
Unknown column 'np.person' in 'where clause'