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 (17848,14622,17771,10402,44766,44866,4686,22509,45421,44853,17237,44848,44854,17527,14402,44669,18427,45567,39676,44836,44858,18650,13922,18172,18279,45051,44640,5388,24438,44894,17114,44855,37057,5410,45042,18572,18719,37267,45515,45516,18688,31354,44845,44884,44764,44711,45518,36472,18301,16935,44674,17756,17904,45346,45180,3,18652,17335,30963,28530,18981,17278,6862,18042,44861,19057,44856,24411,17092,44873)
Unknown column 'np.person' in 'where clause'