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 (44855,45518,24411,45277,18981,3,44837,13,17848,34194,45042,17335,17009,45286,44711,44767,44836,5410,44687,44739,17755,18572,44866,44873,45177,44768,9341,44764,10402,44765,37057,17114,45567,18042,45517,44853,17351,17835,6862,16935,28530,44869,17527,32454,45516,17601,30986,17092,44671,18650,6782,44745,45051,44861,17556,18719,44766,45421,44867,3883,6609,36472,30963,8753,13922,18652,45515,37267,18446,18430)
Unknown column 'np.person' in 'where clause'