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 (37057,45277,13922,10402,6609,18279,44762,44870,17981,45515,17237,44869,16885,45072,44849,24441,44674,32454,18353,45518,45177,45561,17756,44867,13,44711,44768,44855,9341,44848,6862,18688,4686,17335,44689,5410,44745,44835,44858,18286,8753,43800,45043,17904,44868,17755,30986,45180,44775,44531,45421,18427,16935,45517,34194,17527,5259,44866,45346,18894,18981,4765,6875,44685,17657,6782,39676,18042,44767,17351)
Unknown column 'np.person' in 'where clause'