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 (17009,4765,37267,17351,45421,45518,45346,45517,6875,44878,44689,18794,44745,44849,17703,18996,45177,45229,18286,34194,37057,44869,24412,45042,30986,19078,44766,17237,45262,44767,44848,18172,24441,3,44685,44739,18430,18650,18688,17835,13922,17981,5993,24438,8753,44711,18353,17092,18648,18427,44851,17527,44762,16935,17839,6782,44687,17657,36472,6609,44856,44870,32454,18981,44863,45043,44861,6862,45516,17556)
Unknown column 'np.person' in 'where clause'