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 (45277,45051,44765,44855,18279,6782,44869,45286,44837,44873,44861,44739,19078,18185,3,17703,44836,45043,17114,10402,45072,44685,30963,45518,6875,44884,13922,18719,17335,6862,18794,17904,43800,17755,17601,30135,44689,18301,45346,45042,45516,4765,44878,17009,5993,44867,44531,45517,6609,44851,18688,44671,18042,18981,37267,45180,44775,44858,36472,24412,44674,44762,13425,45567,24411,45229,45515,18172,32454,17237)
Unknown column 'np.person' in 'where clause'