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 (39676,4765,45180,28313,44873,18719,19057,45229,14402,36472,44854,44745,44775,44855,44861,44836,18650,31354,17527,34194,28530,18794,17755,24412,44867,44858,18572,22509,5259,4686,45421,16885,45051,44869,5388,44848,44689,44849,13,18688,44851,18446,44884,37057,17703,13988,17237,44835,3883,44878,44762,45567,18279,18430,18286,18427,17278,43800,17839,6782,44868,18042,13425,18996,17848,17114,10402,17904,44894,17756)
Unknown column 'np.person' in 'where clause'