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 (44861,44878,44869,37267,44858,44855,18430,44764,44875,18042,44837,18172,32454,6875,17114,13,44845,17492,44866,30986,45043,44711,24411,18427,44863,18652,44766,6862,18572,13988,4686,18279,44854,45229,14622,37057,17527,24441,45072,5259,45516,45042,44767,18719,45177,18286,5993,18353,44531,17755,17335,44894,44853,44870,18981,16885,44745,18446,44856,17981,44739,8753,45517,18650,10402,44674,44867,17657,44775,17756)
Unknown column 'np.person' in 'where clause'