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 (18172,44873,17839,6609,5259,18719,44851,17009,18286,17601,44861,45421,19078,39676,18042,44858,45561,13,6862,44531,36472,44878,45043,18427,24412,10402,44767,17278,44870,44837,45262,5410,14402,17114,44856,5993,44853,45042,44739,18652,30963,30986,5388,13425,18572,44854,18688,44866,24411,44775,17237,44894,45518,4686,44849,31354,45346,44869,44640,44884,45177,8753,17756,6782,32454,44845,17527,18446,17092,24441)
Unknown column 'np.person' in 'where clause'