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,18286,5259,24412,44531,18652,17335,44775,45043,18688,44855,28313,17009,13922,44685,17904,3883,45516,44854,18301,44870,44766,44858,44863,24441,18650,44853,17981,17114,14622,4765,45421,6862,10402,17755,44674,44878,28530,44765,44640,45346,17527,18794,18446,17556,45517,13425,32454,16935,30963,36472,17756,18042,44884,24438,37057,34194,18996,44764,17848,31354,39676,45051,44861,3,44837,5410,44856,45286,6782)
Unknown column 'np.person' in 'where clause'