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 (44854,18688,18572,17835,32454,44875,44687,17114,44674,44861,45043,18427,17981,17009,44869,44848,44766,18996,4686,16935,3883,44775,17492,37057,4765,18237,30963,18719,17904,30986,24412,44856,5410,44867,17335,17601,17237,17092,44853,44767,6875,30135,17527,18353,14622,45515,28313,18286,18648,44711,45042,17556,44855,44894,44870,44764,44762,36472,45516,44671,44866,45421,13425,44689,45277,44739,44836,6609,45262,18279)
Unknown column 'np.person' in 'where clause'