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 (4765,17755,44894,44768,16885,45421,18286,14622,17556,18301,44870,44866,45043,18237,44873,6609,44685,17335,45180,3,45518,45516,18427,39676,44884,34194,8753,18652,44766,18996,18650,44745,17009,44837,44869,24438,44765,18572,18185,31354,10402,44856,45177,44687,17839,17657,3883,30986,13,44849,44739,17114,17278,19057,17237,44764,44767,4686,17771,37057,44875,18981,17848,44531,17601,17835,5993,37267,18172,45277)
Unknown column 'np.person' in 'where clause'