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,44764,4765,44894,44856,14622,44848,44669,44674,4686,18650,18430,44851,44849,18894,39676,14402,17335,44863,37057,5410,45180,44775,45421,43800,18996,24441,6862,44878,18719,17755,16885,10402,44711,18648,45515,45346,5259,45277,18237,37267,18286,44835,17703,3883,17092,34194,17756,45042,45072,6782,44875,18279,17904,18900,17848,44767,44836,44745,45567,24412,44858,44868,18185,30135,44884,44689,44873,44739,8753)
Unknown column 'np.person' in 'where clause'