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 (44745,45042,44861,36472,17335,44863,44739,17839,44837,45517,18652,13988,24412,44767,18900,44873,45180,45515,17114,19057,44835,44884,17527,44640,18430,18996,44854,45346,44865,6875,44687,6609,45421,17848,44711,17904,44867,17009,44868,44858,28530,30963,45043,16935,18981,44849,45518,18301,13425,45286,44689,45229,17703,44775,44866,24441,18572,44855,44765,44875,37057,28313,45051,44856,44878,45277,17981,3883,45516,44671)
Unknown column 'np.person' in 'where clause'