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 (44870,17835,45042,18427,18794,44866,13922,44878,44863,17335,24411,18572,18688,17839,19057,18719,34194,44861,44766,17703,45180,24412,10402,45561,17114,13425,18279,44868,44689,17351,45277,44767,28313,45072,44669,18900,13988,36472,18042,28530,5993,45515,8753,18172,18185,45518,44875,44762,17527,44775,37057,44869,44531,24441,17904,6782,30986,4765,17848,44849,43800,17756,45346,44856,45051,18446,31354,17981,17092,44836)
Unknown column 'np.person' in 'where clause'