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 (18981,18279,44851,44863,17848,13,22509,3,44870,24412,39676,17835,9341,5993,18900,6862,45180,44878,45518,45262,17335,17009,17556,45515,44762,17092,6609,18237,45421,19057,5410,30963,28313,44711,44674,17351,13988,18650,14402,30986,17771,17703,44764,44739,44884,45043,18185,4686,44855,18286,45072,44848,18301,45277,17237,18996,6782,32454,44858,18172,16885,44869,45042,30135,44837,10402,24438,17981,34194,44767)
Unknown column 'np.person' in 'where clause'