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 (44739,18650,18652,18688,16885,39676,44669,44689,3,44869,44894,18996,17278,30986,17848,45072,30963,44873,45421,5388,17601,45515,18353,44766,44848,17527,14402,17981,44851,44861,18981,16935,6782,45346,13988,44711,44765,9341,24438,3883,10402,8753,17237,6875,17839,45262,4686,18042,18172,44854,45042,18446,24412,44858,37057,17703,18286,17114,5410,45043,36472,17755,44745,5259,18648,19078,44836,18430,44674,17351)
Unknown column 'np.person' in 'where clause'