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 (45567,34194,32454,44878,17657,45517,43800,44873,19078,17601,17981,17904,17755,18648,45518,18981,17009,45043,10402,17092,31354,44764,44687,18572,44835,44894,37057,18042,18900,44836,45051,44766,28530,18719,3883,6875,44851,44867,44884,24411,13,45421,3,18794,18427,17848,44711,45346,19057,44870,44856,5410,44858,45042,13922,44875,6782,6609,17237,4765,44854,17278,6862,13988,30963,8753,44767,30135,18286,44775)
Unknown column 'np.person' in 'where clause'