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 (44835,9341,17556,44884,17351,28530,45177,36472,19057,44762,8753,17237,44768,24412,17335,17601,18427,44689,44894,18650,44765,6782,13922,18981,18353,30963,4686,44836,44866,18719,44865,44873,44685,17703,44671,5993,13,10402,44766,5259,17771,44848,44845,34194,3883,37267,45346,44856,6862,45180,18572,45051,45567,17114,30986,3,45515,45518,17009,44861,44854,18996,17848,24441,17904,5388,44868,45072,44853,45262)
Unknown column 'np.person' in 'where clause'