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 (45421,44867,8753,44870,24438,44775,16935,17335,17835,44869,45516,44849,45346,3883,45567,44836,45072,45177,18688,44768,30135,18981,4765,18237,44863,44711,31354,44766,18353,44884,44856,45042,6875,17492,18042,45051,44689,17981,6609,44858,17756,36472,44861,5993,18996,44894,17848,5259,44855,44875,37267,17114,45229,32454,17904,44685,18650,44848,44854,45515,18286,17009,5388,44868,18427,44837,19078,44835,18430,3)
Unknown column 'np.person' in 'where clause'