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,45277,9341,44853,5410,45043,6862,44739,44873,45042,44858,44861,18042,36472,45072,18286,14622,44878,13922,17351,17114,45567,13988,44875,44685,18185,18719,24411,4765,44671,18353,31354,30986,30963,45515,44894,45286,17237,6609,45518,18688,45051,18894,45517,17904,17981,17092,18652,44849,10402,17771,44766,17703,5388,18427,44745,17009,45177,17601,6875,45346,37267,45421,44869,44775,17839,28530,24438,17848,44687)
Unknown column 'np.person' in 'where clause'