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 (45346,4686,44766,44775,17237,44856,6875,17848,18648,44894,45229,16885,44711,22509,17556,43800,44671,44768,14402,44669,45180,18719,18652,44764,6782,17335,17351,45043,17114,28530,45277,17657,13922,18427,45177,18446,18572,3883,13,45051,44870,44868,44765,32454,18650,17771,44867,24411,17904,30135,9341,39676,13988,44837,44687,28313,45518,36472,44863,45516,44854,44689,13425,18172,16935,44866,45567,30986,17527,6609)
Unknown column 'np.person' in 'where clause'