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 (45277,18172,17556,17237,8753,17657,45346,45517,44687,44866,24412,17278,44868,44870,44765,37057,32454,17601,6609,6875,44837,44531,45262,22509,18427,44689,44671,17703,44854,44865,34194,45177,18719,17848,18430,14622,45229,18237,44685,44766,44768,44853,44855,39676,45561,18688,45516,17527,18894,6862,4686,18286,45518,17009,9341,3,44762,44878,45043,44858,43800,16935,14402,44873,44745,44863,37267,44851,45051,17981)
Unknown column 'np.person' in 'where clause'