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 (14622,18237,8753,17556,45518,18185,17527,44837,44711,44884,10402,45517,44851,17351,18042,32454,24411,17904,44856,17009,17278,45561,36472,18652,44640,45515,45516,44762,44835,45043,3883,5388,44849,17335,18648,9341,44869,44836,44767,17756,17601,6862,28313,18981,44845,17237,5410,44868,18650,6609,17755,13,17657,18430,19057,13922,19078,4765,44870,18427,5259,17703,30986,16885,17981,44745,45177,18172,44865,30963)
Unknown column 'np.person' in 'where clause'