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 (17351,44674,18648,45516,18430,44869,30135,17009,28313,17981,44868,44762,44873,28530,17527,36472,44858,5388,18652,18688,45561,45177,45517,44687,17848,17114,18981,5259,45043,45567,4686,44856,30963,17755,44768,44767,37267,17756,45286,5993,44861,13425,18353,44855,17703,18719,18894,3883,17835,44745,44870,45421,44764,44836,44853,45042,4765,44894,17237,44739,45072,14622,17492,17839,44851,19057,44766,45051,18996,44689)
Unknown column 'np.person' in 'where clause'