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 (17335,24438,44766,17556,6862,17771,18237,4686,13922,17351,13988,10402,19078,17009,44768,45346,44851,44689,45561,45517,6875,17839,44856,6782,45567,17092,18981,17114,37267,44894,31354,44861,14402,18430,44870,44875,8753,44640,45516,34194,44762,18353,44878,17904,16885,44868,44671,39676,18794,6609,45180,44855,44835,44867,18042,17657,45277,18185,18286,18301,44853,17527,19057,13,44687,16935,18688,28313,44869,44739)
Unknown column 'np.person' in 'where clause'