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 (18446,44875,18279,44745,44836,44767,19078,4686,44884,17703,5993,44856,16935,44768,45042,17839,37267,17981,45043,17601,45180,45517,3,17848,18688,18794,44775,44851,17756,45229,39676,18572,31354,44711,18427,45421,18172,44865,44685,44674,5259,17527,30986,44845,28313,5410,45516,44854,22509,45567,44866,44870,28530,44766,34194,10402,44765,44873,45277,36472,30135,44669,6862,19057,44869,18996,18286,17351,44640,18237)
Unknown column 'np.person' in 'where clause'