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 (17756,45277,45180,44868,45042,44851,45072,18648,44858,44869,44865,44689,17114,44866,44762,17278,13988,8753,17981,18719,44768,13,44861,45043,18427,17835,45561,44767,16935,17492,44766,18185,4686,44848,44739,45515,44765,6875,44849,18430,44837,18688,30963,45518,14402,44854,30135,17237,44894,44875,18286,18572,17351,3,17703,17771,18652,19057,45051,30986,18172,18900,44856,18279,13922,6609,44775,9341,10402,3883)
Unknown column 'np.person' in 'where clause'