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 (44835,31354,17601,44878,45043,5388,13425,6875,17848,45421,45516,18286,24438,14402,17755,18688,44853,17904,18900,18719,45180,10402,44868,28313,17835,44875,17114,9341,44767,37057,18652,44851,14622,17527,19057,18279,44856,17771,36472,17556,17657,44766,13988,44861,18572,17335,18981,30986,44849,44867,39676,44768,17009,44762,45346,44745,45177,44870,17351,44873,24411,45042,6782,18427,17839,44531,44855,44671,44689,6862)
Unknown column 'np.person' in 'where clause'