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 (44671,18894,44640,45072,45517,14402,6862,36472,31354,44867,18042,17009,18688,44669,44894,44764,17904,24411,45229,18900,18652,44865,37267,18427,45177,10402,44873,30986,19078,5259,18650,17114,17848,18446,17278,32454,44854,17981,13922,45421,44674,24441,13,6609,45043,17527,5388,17351,17835,17771,13425,44863,18172,44856,44870,18286,44766,45346,45042,44687,45567,44869,3,6782,18185,44849,44767,45180,45262,45277)
Unknown column 'np.person' in 'where clause'