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 (24411,17009,18652,18794,44674,36472,16935,18650,22509,44853,44837,45517,44854,18981,13425,9341,17755,45277,44870,3,13,44878,17703,17657,30986,45262,45229,44669,19078,44685,17756,17904,44764,18286,44855,44836,17981,44765,44861,45177,44873,6782,17114,44866,17278,44849,44745,18894,18719,17848,5259,44868,18427,18648,45518,45516,18279,44767,14402,19057,44869,5410,44867,17351,44858,45346,5993,18172,44671,17335)
Unknown column 'np.person' in 'where clause'