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 (37267,45516,17237,17527,3,44878,17278,13988,18430,45277,17848,18900,44765,45518,18446,44875,44766,44764,18794,45515,4765,13425,6782,9341,44762,24438,45042,17981,44669,18894,18279,18981,44894,8753,44863,44867,18652,44866,39676,45346,45421,19057,45043,44851,31354,30135,18172,34194,44835,18648,44856,17839,6875,44855,44869,45517,45561,44861,45286,44868,18042,45229,16885,44687,28530,44685,17657,44849,44873,44854)
Unknown column 'np.person' in 'where clause'