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 (17237,13922,44767,45421,44853,30963,6862,31354,45286,44866,37267,44764,17848,17981,44711,16935,17703,17904,4686,34194,44894,45518,18794,44854,8753,44856,44835,13988,45180,18446,5993,24441,39676,18042,3883,44685,45262,18981,24412,44775,19057,18279,44869,44861,45042,44836,18301,17755,45515,44851,37057,4765,44687,18430,10402,18719,44739,44766,17114,13425,44674,14622,22509,17351,30135,18185,44878,45072,30986,18172)
Unknown column 'np.person' in 'where clause'