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 (44867,6875,18652,18446,44531,24411,44768,18981,44858,45177,18794,44767,6782,44640,17114,44894,45515,18185,44848,44870,43800,45262,13,17755,30986,10402,44875,45277,6609,17839,18719,45421,44866,31354,44869,17092,17009,44775,16885,17278,44856,17527,16935,45286,18650,24438,30135,44669,18237,44854,17657,44766,45518,44853,45180,44689,17771,24441,13922,18688,14402,44868,18042,45561,45516,18427,44851,45567,17848,17756)
Unknown column 'np.person' in 'where clause'