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 (44865,44868,5259,44531,18301,18279,30963,4686,45051,17237,17835,18719,8753,44867,17527,17351,18286,44765,24438,18237,17771,44858,44866,3883,44674,45072,28530,44870,17278,45229,44766,45180,17092,44768,4765,17114,44836,18427,44854,5993,22509,44689,17981,18688,17755,16885,44671,45043,18794,18648,30135,45421,44894,44640,39676,18996,44739,17601,37267,37057,45277,44685,17848,14622,17703,44762,44775,18572,44848,45346)
Unknown column 'np.person' in 'where clause'