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,44869,37057,14402,44739,6875,44870,6782,44835,44854,44640,44858,45177,30963,45043,45567,5410,17492,18688,17756,44873,17601,5993,44689,8753,44765,17755,17278,17335,44775,18279,44866,45515,24412,44767,45518,45042,18427,44845,45229,44884,17114,45277,22509,44863,17904,18446,37267,18981,18172,17835,45346,44669,45286,3,13988,18996,18894,4686,44856,19057,30986,5259,17839,18430,44768,39676,14622,43800,17351)
Unknown column 'np.person' in 'where clause'