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 (39676,8753,18446,18279,45042,44867,44894,18427,45043,16885,18042,13,17351,18286,44762,45346,22509,18794,45518,17278,18688,6782,16935,44767,36472,13425,18900,19078,44674,14402,4765,45516,18353,44775,17981,45277,44669,44849,28313,17009,44711,37267,18185,28530,45262,17755,44861,6875,14622,18981,45421,17835,44851,17848,17756,17527,24441,17703,45567,44531,34194,13988,18237,18301,17839,30986,32454,45177,44873,44866)
Unknown column 'np.person' in 'where clause'