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 (13425,5388,24412,24441,18353,44739,44853,17755,18427,18237,18446,45277,4686,44868,17092,5993,18719,6609,44836,17904,16885,18572,44849,44855,18286,5410,44873,19078,45517,44866,18794,10402,17848,45567,44869,44851,44765,44764,17351,45516,44848,18279,44669,17601,44674,45262,45072,17981,45286,45177,45515,44687,17492,34194,18894,45346,24411,17114,17556,39676,17237,17835,44861,14622,17527,44837,9341,37057,44711,44854)
Unknown column 'np.person' in 'where clause'