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 (45229,17755,18996,17835,14622,45042,31354,34194,44671,44851,13988,44848,24412,17492,28530,44764,18427,18894,17527,18650,45177,6782,5388,44531,45515,44768,44878,17237,17848,44669,44854,44867,17981,44766,18286,18172,18185,45051,18688,17278,44853,45517,44856,44855,30963,14402,44711,45561,3883,44837,44674,17904,45072,44870,18981,44884,30135,13,4765,3,18430,6609,18652,8753,44869,16885,19078,30986,6875,44866)
Unknown column 'np.person' in 'where clause'