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 (44669,39676,45515,44868,17755,36472,18894,45177,13922,24441,44875,18427,17839,18900,14622,19078,19057,17756,14402,44884,44689,45072,17335,4765,10402,44865,44845,17657,17237,34194,5993,18279,18172,37267,18572,24412,18430,9341,45421,44858,44894,28530,18185,17527,18286,30135,45051,6782,45346,44764,45277,44856,5410,30963,13988,45518,3,17904,44869,18042,13425,18996,18652,44835,18719,32454,16885,13,44685,18446)
Unknown column 'np.person' in 'where clause'