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 (18042,39676,4686,3,28313,44687,17492,17114,24412,17237,44868,44739,44767,44863,17351,45277,18572,17278,13425,44858,44869,10402,30135,44775,18794,22509,37267,3883,5410,18981,34194,44764,17904,44855,45042,14622,18185,13,36472,44894,18427,5259,44640,17335,44866,16885,30963,45561,17703,13922,6782,19057,44856,45262,17092,45043,17755,45515,18237,44766,44875,45072,17981,44865,44671,44867,28530,4765,45229,17839)
Unknown column 'np.person' in 'where clause'