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 (17981,44640,37057,17839,44854,44765,45177,18301,17351,18981,36472,18237,18172,5259,17904,18430,44878,17756,44711,44867,45421,13922,45516,44855,45042,44866,18652,17556,17771,17237,44767,17335,44863,24441,44766,17114,44868,44856,44837,13988,18446,18719,44845,44835,16885,45051,45262,44851,45561,24412,44870,44745,3883,30986,31354,45277,44836,18900,18427,39676,5388,45043,44775,17703,45180,44762,18688,18286,32454,44875)
Unknown column 'np.person' in 'where clause'