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 (44873,44868,13,44671,17755,17835,44849,44855,44863,18427,44767,45516,17527,3883,37057,8753,24438,18719,18172,44851,45421,44858,44867,44861,17756,44853,45051,17092,44766,17351,17114,31354,44856,4686,3,24412,17848,45072,45518,44745,5410,13425,24441,18648,39676,44870,16885,13988,6782,44768,44765,44836,17492,45517,44875,9341,44878,37267,18900,45043,44640,17278,19057,45042,28313,44854,4765,17009,18650,30963)
Unknown column 'np.person' in 'where clause'