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 (17556,10402,17703,34194,44837,45517,45229,32454,44856,45516,18427,44854,44858,45286,24438,44851,5410,24411,17756,44711,4686,44869,13,44775,18648,44640,18430,28313,24412,17114,6782,44764,39676,44739,45180,44687,45043,44894,36472,18688,30986,44768,44868,17981,17657,18981,44849,18353,3883,17904,18900,5388,30135,45567,13988,45421,5259,24441,18185,18301,44762,44848,18286,44870,45051,45346,18794,44669,44685,44875)
Unknown column 'np.person' in 'where clause'