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 (18996,17839,22509,44835,44851,17114,8753,18430,17527,17657,44854,14622,44870,44687,18688,44884,18286,18446,13988,45517,17904,37267,44775,28313,18427,37057,44875,45229,44768,44865,44531,9341,44745,36472,18652,45051,44858,45561,32454,14402,30135,17009,45043,6875,45177,44764,44868,44669,16885,6609,45072,44894,44671,45516,44848,5259,17237,45262,45567,44767,45286,18185,4686,44866,17835,44685,13,17092,17278,6862)
Unknown column 'np.person' in 'where clause'