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 (24411,45229,44870,45567,6862,45517,36472,6609,13,18353,45262,44849,13425,37267,16885,34194,18427,44851,5410,31354,32454,44875,18900,5388,39676,17755,17771,14402,13988,18650,17703,44884,45051,18572,17657,17835,4765,18042,18894,19057,44856,18981,17237,45515,17351,45043,3883,17904,44853,44762,44669,18185,10402,18996,17278,17092,44867,4686,44848,44873,18719,30135,24412,44854,44863,22509,17335,9341,19078,44837)
Unknown column 'np.person' in 'where clause'