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 (4765,13,44878,44870,44866,28530,44854,45516,17556,13988,4686,16885,22509,44867,44861,45229,17492,18301,18172,45346,17335,10402,44851,44884,45180,45421,31354,44745,45043,18719,18794,17756,18900,17848,18981,17904,43800,45515,45518,44875,28313,44837,16935,45567,24411,30986,24412,17755,18237,18286,37057,45561,6609,17981,44762,44766,24438,17092,36472,45517,45262,44858,18996,44868,17839,3883,18279,44689,6782,14402)
Unknown column 'np.person' in 'where clause'