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 (44866,18427,44775,44858,44861,44640,45567,17771,19078,44669,44689,44869,17237,5259,17009,44863,28530,13425,44868,44848,18794,44766,44854,32454,13988,5410,44768,18688,34194,18185,16885,44671,44894,45346,45051,17904,18652,44711,45515,16935,24412,44836,44853,39676,45180,44845,45229,4765,17335,44865,17756,17657,6862,17848,24441,13,28313,44851,45042,18572,4686,17278,45177,37267,18042,44531,44875,44685,18900,45043)
Unknown column 'np.person' in 'where clause'