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 (44858,44669,45229,44866,10402,44853,18652,44867,18981,14402,13988,44854,17527,44689,18894,16885,34194,19078,17756,45051,17092,17492,45517,30986,8753,45515,44739,36472,44884,24411,18900,17237,44868,44764,44855,44878,6609,45043,24438,24412,17981,37057,44894,17755,28313,6782,44765,45421,18430,13425,24441,17835,18650,9341,17771,4686,45518,18794,44671,44873,28530,45346,17351,45072,19057,18719,44848,44531,17703,5388)
Unknown column 'np.person' in 'where clause'