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 (44689,45072,18894,18427,45277,44765,5410,30986,44687,37267,32454,30135,6782,44767,45567,44764,18794,44894,45517,45561,18650,45042,17556,13425,44685,17755,17492,5993,18172,18042,44762,44863,17848,18981,17092,17904,44836,44711,44865,17114,24438,45421,28530,44856,44884,44866,3883,17839,14402,4686,18279,44674,18430,45262,13922,19057,4765,39676,8753,44671,36472,44870,45177,19078,5388,34194,45043,17601,18648,18237)
Unknown column 'np.person' in 'where clause'