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 (17771,44851,44868,44855,45346,45286,44869,44711,45043,34194,44766,18794,44884,18446,5388,17278,17351,32454,45051,43800,28530,30986,17527,45042,37267,44764,17839,45516,18286,44775,17657,5993,17835,18688,44878,44866,39676,17755,44739,17556,17848,18648,44765,18430,14622,18996,10402,18185,13922,19078,17981,44745,44835,44867,44870,44640,37057,45229,17904,44531,18652,17756,44837,18572,44858,8753,18301,44863,17335,17237)
Unknown column 'np.person' in 'where clause'