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 (44766,30135,45042,45262,10402,18572,18446,44671,43800,44669,18427,44849,44856,44853,45421,5259,45516,4765,17755,44884,18900,24438,18894,28313,13425,45043,45277,44745,39676,37267,17556,17335,16885,18996,17601,45515,13922,16935,17237,6782,6609,8753,17278,44689,37057,45180,36472,18430,14402,14622,3,17492,45567,18185,44868,45286,18172,18648,24411,44861,17114,44878,31354,17771,19078,5388,18688,44775,17981,17657)
Unknown column 'np.person' in 'where clause'