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 (16935,37057,45229,44671,44858,18652,44766,45515,18042,10402,17904,24441,45346,45072,30135,44767,45262,17556,17492,24412,44845,45421,6609,18572,18719,44868,44854,45561,3,18185,45516,44764,44674,5388,30986,44863,6862,28313,17703,17839,18430,13922,18237,18900,24411,9341,17981,45180,44851,44689,18794,44884,44640,28530,18427,5259,44875,6875,24438,44855,17092,17009,14402,13425,37267,45567,44866,13,19057,16885)
Unknown column 'np.person' in 'where clause'