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 (28530,18237,44711,30135,17556,10402,18286,44669,44869,44878,19078,30986,17756,24411,18794,18650,6862,14622,44837,44849,44768,36472,17114,13425,17981,37267,44764,44531,24412,45561,31354,45043,30963,45421,4765,17237,44685,44894,18652,18042,6609,44870,45277,44687,17904,45567,44855,44867,18446,17755,45518,17335,17835,44856,44884,18688,17839,17771,34194,18427,45229,4686,44873,44671,44858,18981,43800,9341,44765,45180)
Unknown column 'np.person' in 'where clause'