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 (4765,18301,45421,3,17351,45051,18688,31354,17114,24441,44848,14402,44894,18353,18042,17601,44745,44875,17009,17703,44851,44711,44853,18446,44884,18185,18981,5259,44855,44531,37057,44674,19078,17756,8753,17556,17278,10402,44767,44764,13988,45277,44837,45262,32454,44762,4686,18286,45042,17755,45346,44845,44854,39676,18430,5410,6875,37267,45043,18652,18894,18719,44861,44868,17981,43800,44689,30986,44869,44687)
Unknown column 'np.person' in 'where clause'